Moderator
Are you specifying an API key in the request?
Votes
1
Replies
24
Participants
Unknown
Messages
25
Moderator
Are you specifying an API key in the request?
Moderator
I mean in the headers
Rank 2: Process
But when trying to get a list from a function (to make business logic or integration, like sync tables) sometimes fetch all table records is needed, for example, I will have a table with almost 10K records, so I will need to fetch them in the function, but for client sdk It is good the limit of 5000 (or even less)
Rank 2: Process
I tried both, with client session, and with server api key
Rank 2: Process
both responses are the same
Moderator
And in both cases without an API key you're able to get unlimited documents?
Rank 2: Process
yes
Moderator
🤔 @Steven Could you take a look into this? Shouldn't that be limited client sided without an API key?
Rank 2: Process
So with server sdk the limit is not 5000?
Rank 2: Process
I mean when using apikey
Admin
as of 1.3, we've removed the maximum limit
Moderator
Whaaat 😅
Admin
but total is still capped at 5k
Moderator
But isn't that going to allow abuse?
Admin
we plan to kill and block slow queries
Rank 2: Process
but, when a query is considered slow? it will be a env var to config that?
Admin
maybe/probably?
Moderator
I think instead of removing, it should be customizable, like all other abuse limits, in my case just to reduce them. Meanwhile I will make a fork, since I don't want anyone getting 5k documents with a single request 😅
Rank 2: Process
sorry, did not understand you
Admin
i don't know that detail
Rank 2: Process
oh, ok thanks
Rank 2: Process
Are you agree that when calling "list documents " from functions there should not exist a limit or kills for slow queries? cause that is made by the developer so he must have care of what is he coding. On the contrary, the "client rest/sdk" requests should have the limit/kill
Admin
We want to protect the platform and prevent one project's slow query from affecting another project, so we plan to kill slow queries regardless of client-side or server-side
Rank 2: Process
sounds good
Moderator
Anyways it will not be the same doing a query with 100000000 elements than one with 30 elements, so due to that, I think there should be anyways any limits (but customizable)