You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect that you can emulate this in most (if not all) cases by inserting .limit(100000) terms into your query at the right places (before the command that converts the data into an array). Though I can see that becoming a bit annoying if you're building ad-hoc queries from user requests.
One issue with truncating automatically is that things might no longer behave in the expected way.
For example if you have a non-indexed orderBy("val"), and we simply truncate the input to 100k elements, then the first result in the output is not actually going to be the one with the smallest val.
@thelinuxlich That is true for some terms, but not for others. An un-indexes orderBy can never be streaming for example as far as I can tell. It needs to wait for all inputs before it can determine which input is the smallest.
Would it help us here if it was temporary?
It would be nice if we had a .run() optarg to let the query return as much documents as possible instead of throwing an error because of arrayLimit.
I mean, if arrayLimit is 100k and the query results in 500k rows, return 100k
The text was updated successfully, but these errors were encountered: