Hi guys, I'm querying data with the query above, but it seems like scanning too much data. I've set

Hi guys, I'm querying data with the query above, but it seems like scanning too much data. I've set index for p.posted and p.retry but it's still scanning the whole table p. Is there anyway to reduce scanned rows of the query above? I'm running this query every minutes so everyday I'm wasting 10-20k scanned row. This table is going to grow much larger so the waste will be more significant
Screenshot_2024-02-21_at_11.55.02_AM.png
Was this page helpful?