Athena query timeout

0

Hello, I was running the following query against a bucket to get details related to usage of access key for a particular time period, but my query keeps running into a "query timeout" error. I tried reducing the range of the time event to as low as 30 days but the query did not finish successfully.

SELECT 
useridentity.userName,
eventName,
       eventTime,
       eventSource,
       sourceipaddress,
       awsregion,
       errorcode,
       errormessage,
       requestparameters,
       responseelements,
       eventId
       
FROM <bucket_name>
WHERE eventtime >= '2022-06-23T00:00:00Z'and eventtime < '2022-07-24T23:59:59Z'
AND useridentity.accesskeyid = '<access_key>'

Query Id: ad56a98f-7481-4989-ba6a-1571e51c2ca1

AWS
질문됨 일 년 전338회 조회
1개 답변
0

If your Athena query is timing out you can probably optimize your configuration to improve the performance.

Data Format If possible you can improve the performance by using an efficient file format like Parquet or ORC. This will save you time and costs as less data will be queried. https://docs.aws.amazon.com/athena/latest/ug/performance-tuning.html

Partitioning If your dataset is large or changing frequently you can partition your dataset by a specific key like year, month, day, etc. The query will only look at specific partitions that will improve performance and reduce costs. https://docs.aws.amazon.com/athena/latest/ug/partitions.html

Upgrading Athena Engine Overtime AWS releasing newer versions of Athena that will be more optimized. If you're not already using the latest version you can look at upgrading to get the latest benefits seamlessly. https://docs.aws.amazon.com/athena/latest/ug/engine-versions-changing.html

I hope these suggestions help you resolve your issues.

전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠