Query Max value for collection(table) with 50,000 records
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.
Sort by that column descending, fetch the first record. Done.
hi @bohemima thank you for your reply. I found that it has limit of 1000 records. is it configurable in hosted parse ?
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.
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.
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)