parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Query Max value for collection(table) with 50,000 records

Open jaydeep82 opened this issue 10 years ago • 5 comments

Could you assist me if there are any limits or constraints for querying collection table in hosted parse ?

I have one table(collection) with 50,000 records and I want to find the max value of one integer column.

jaydeep82 avatar Apr 27 '16 10:04 jaydeep82

Sort by that column descending, fetch the first record. Done.

bohemima avatar Apr 27 '16 14:04 bohemima

hi @bohemima thank you for your reply. I found that it has limit of 1000 records. is it configurable in hosted parse ?

jaydeep82 avatar Apr 27 '16 14:04 jaydeep82

Adding an index should solve your problem. In Parse.com this should be done automatically. In Parse Server you will need to add indexes manually. Check out the mongodb docs for how to do that.

drew-gross avatar Apr 27 '16 18:04 drew-gross

thank you @drew-gross your assistance. I will check this. my use case is find max salary from salary column of table(collection) having 50000+ employee data.

jaydeep82 avatar Apr 28 '16 06:04 jaydeep82

Closing due to lack of activity, please update to latest parse-server version and reopen if the issue persist.

Don't forget to include your current:

  • node version
  • npm version
  • parse-server version
  • any relevant logs (VERBOSE=1 will enable verbose logging)

flovilmart avatar Jul 12 '16 23:07 flovilmart