The old query would diff the wait period from all records in the databas...

...e, then find ones that needed reindexing. The new query limits the check to only recent diffs