Closed srcr closed 4 years ago
Quick fix, setting 64MB for sorting.
$ mongo localhost
> use admin
> db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes:67108864})
Ooo, looks like this might up pagination to the top of the priority list, need to make use of limit and skip, which has been on the list for a while, because returning all the samples the the front end is insane. Will have a look into this when I find some time.
Just an update from my end, currently I have 66,360 samples and the error is back. So I've updated MongoDB to use 78Mb for sorting.
Apologies, have been super busy and just not found time for this. Ill see if i can set some time aside this weekend.
I wasn’t trying to pressure you. Apologies are not needed.
Right finally found time and have a new laptop, so time to code :D
So pagination has been added to snake-core: https://github.com/countercept/snake-core/commit/14c7cf6d78999be181f967b16f18ff5e28b3fb91 And I have added backend pagination support to snake-skin: https://github.com/countercept/snake-skin/commit/296420b060313d65f515b1c1566d20e966bdbb4d
Not sure how you are deployed but would be great if you could test those to check that it solves the problem for you.
Works like a charm on my end.
My number of samples is increasing steadily (28832) and today snake-skin stopped working due to an error from snake-core, see below. I'll have a look myself but it seems like if passed a threshold.