Can anyone recommend a better way to do this query?
This query executes about once an hour right now, we may run it more frequently in the future and the amount of rows in the table will continue to grow (currently at around 3mm +).
Thanks for the quick response, I’m not exactly sure what you mean in terms of getting the “entered” field by itself? You’re right that indexing won’t work on the calculated field and that indexing on “status” (which exists) is not selective, especially since all records eventually have a “sent” status.