Limit the data in SPICE from Athena table

Hi folks,

Our datasource has 100GB of data (and growing) and it take a very long time to be loaded in quicksight with direct query (more than 60seconds). My environment is this

S3 → Glue → Athena → Quicksight.

We started using SPICE initially, where after 100GB of data, it is started giving timeout with failed to load.
After that we shifted direct query to Athena with partition on month, day, year using dataset parameter Using dataset parameters in Amazon QuickSight - Amazon QuickSight
. but it is turning out to be pretty slow.

For our usecase - we need only last 8 weeks at a time. How i can limit SPICE to load latest data only with last 8 weeks of data where it is refresh automatically daily?

Hi @rishaja

Welcome to QuickSight Community .

Either you can write custom sql in QuickSight to limit the data to last 8 weeks as shown below or you can have view in Athena with similar filter conditions to limit the data in SPICE.

 SELECT * FROM "cid_cur"."cur"  where bill_billing_period_end_date > ( current_date + interval '56' day)

Please check the below community post for additional details.

Thanks
VInod