My query failed with the error \"resources exceeded\". What causes this error, and how can I fix it?
Also faced the error
Error: Resources exceeded during query execution
due to using an ORDER BY
. More information about that is given by Pentium10
Using order by on big data databases is not an ordinary operation and at some point it exceeds the attributes of big data resources. You should consider sharding your query or run the order by in your exported data.
As I explained to you today in your other question, adding
allowLargeResults
will allow you to return large response, but you can't specify a top-level ORDER BY, TOP or LIMIT clause. Doing so negates the benefit of usingallowLargeResults
, because the query output can no longer be computed in parallel.
To solve it I've gone through 9 steps