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

Question: Are the parse limits lifted when hosting your own MongoDB

Open TylerBrock opened this issue 10 years ago • 14 comments

Before moving completely off of parse, but when MongoDB is hosted externally, are the usual Parse service limits in place?

For example the limits on counts, requests/sec, etc...?

TylerBrock avatar Mar 08 '16 17:03 TylerBrock

There are no limits in place in parse-server.

flovilmart avatar Mar 08 '16 18:03 flovilmart

Right, of course, but I'm wondering about the intermediate stage. The stage when clients still hit api.parse.com but host your own MongoDB.

TylerBrock avatar Mar 08 '16 18:03 TylerBrock

@TylerBrock The limit of API requests per second according to your current Parse.com plan seems to be still in place when you migrate to your own DB. As long as you keep using the Parse.com hosted API. You can see when you hit the limit in the dashboard and requests are not served.

mtrezza avatar Mar 09 '16 04:03 mtrezza

How about the limits of queries? Usually parse limited queries of upto 1000 entries. Is this lifted in the open-source Parse server?

taufiq-husain avatar Mar 11 '16 06:03 taufiq-husain

@taufiq-husain No, the limit restriction for query results of 1k objects exists also if you self-host your Parse Server. You can retrieve more objects through paging query.skip = 1000.

I assume the limitations are due to the original intention of Parse being a mobile BaaS. For mobile applications it makes sense to return a limited number of results to the client due to cellular network and mobile device resource limitations. The processing and filtering of data is supposed to happen server-side as much as possible, the client should have as little as possible and as much as necessary a) data to work with and b) data processing tasks. Depending on your use case maybe you can shift some logic to cloud code.

mtrezza avatar Mar 11 '16 13:03 mtrezza

@mtrezza will have the same limitations as well... In fact, parse.com had a limitation of 1000 elements per query and a max skip of 10000 if I'm not wrong, so that you could only get around 10.000 elements (in cloud code too). I hoped this will go away in self hosted parse-server.

otmezger avatar Jun 01 '16 19:06 otmezger

This is weird. This claims that self hosted parse-server doesn't apply limits. Just checked parse-server v.2.2.6 and query returned all 7.7k records

virtualtoy avatar Jun 10 '16 14:06 virtualtoy

@virtualtoy Thanks for pointing this out. My statement back then was based on an actual test query. Did you set the limit parameter to >= 7.7k or not set it at all to fetch the 7.7k records?

mtrezza avatar Jun 10 '16 15:06 mtrezza

@mtrezza I set to 10000. By default it fetches 100 only

virtualtoy avatar Jun 10 '16 15:06 virtualtoy

@virtualtoy where did you set it to 10000, because my default is 100 also

adambarghouthi avatar Feb 15 '17 00:02 adambarghouthi

Use the limit() method on a Parse Query object.

TylerBrock avatar Feb 15 '17 00:02 TylerBrock

oh straight in the code, thanks @TylerBrock !

adambarghouthi avatar Feb 15 '17 17:02 adambarghouthi

is this possible through the REST api?

kylebakerio avatar Jun 02 '17 06:06 kylebakerio

Yes, with the limit parameter

flovilmart avatar Jun 02 '17 11:06 flovilmart