How can I resolve the Athena query error "Query exhausted resources at this scale factor"?
2 minute read
0
I ran an Amazon Athena query and received the "Query exhausted resources at this scale factor" error.
Resolution
This error might occur if the demands of the query exceed the resources available to the cluster that ran the query. For more information, see Resource limits.
To resolve this issue, follow these best practices to optimize your queries.
Reduce the amount of time to run the query from Athena
To increase the performance of your queries, follow these steps:
Reduce the number of requests, or distribute the requests over a specific time period.
Use an ExponentialBackoff algorithm to implement longer wait times between query retries or when you simultaneously run multiple queries. For more information, see Retry behavior.