err:user:unprocessable_entity:query_memory_limit_exceededdetail says which.
Example response
Likely causes
- The result is over 4 MiB as JSON. This is the common one, and
detailisQuery result exceeds the maximum response size. - The query needed more than 1 GB of memory while running, unless we’ve raised that for you.
detailis a memory message.
How to fix
- For a result that’s too large, return fewer rows or columns: add a
LIMIT, drop wide columns you don’t need, and page through long ranges by time. Aggregations that return a few rows never hit this. - For memory, filter earlier, group on fewer or lower-cardinality columns, and avoid
groupArrayover large groups.
Related errors
err:user:unprocessable_entity:query_rows_limit_exceeded: the query read or returned too many rows.err:user:unprocessable_entity:query_execution_timeout: the query ran too long.