Cant display more than 100 objects in a category in my app.

588 views
Skip to first unread message

androiid...@gmail.com

unread,
Apr 26, 2016, 10:30:03 PM4/26/16
to back{4}app
Hey guys, i have not been having any issues displaying data in my app from back4app. Until now, i have 4 categories in my app and when you select a category it will display thumbnails and title in a list. apparently i can only add 100 items in a category. Because i have a total of 291 episodes being shown through url link and in my app its only displaying 100 items. and now, when i try to add more items into the category the count of items drops down. Example: if i add a item it goes from 100 items to 99 being displayed. wierd. is there a cap of some sort im not aware of?

Davi Macêdo

unread,
Apr 26, 2016, 11:06:39 PM4/26/16
to back{4}app
By default, Parse Server limits the queries to return max 100 rows.

But you can increase the results up to 1000 rows using:
query.setLimit(1000);

Take a look here:

It will solve your problem. If you need to retrieve more than 1000 rows you will have to perform more than 1 query and group the results.


dcwi...@gmail.com

unread,
Oct 14, 2016, 4:31:17 PM10/14/16
to back{4}app
Hi Davi,

It would be great to if you could post a JavaScript routine to go above the 1000 limit.  I have recently inherited a JavaScript app that has the 1000 limit issue.  I have tried some other Google posts but have not succeeded - probably due to the fact that I am somewhat a newbie.

Thanks in advance for any assistance.

casag...@back4app.com

unread,
Dec 19, 2016, 12:34:17 PM12/19/16
to back{4}app
Hello!

You may find in this Link, an example to show results above the 1000 limit. If you have anymore doubts, just let me know.

Best!
Reply all
Reply to author
Forward
0 new messages