I'm using this to try and get all events with a timestamp of today
SELECT systemuserid,ondate from auditlog
WHERE ondate::date = NOW()::date
Performance seems really bad, over 2 minutes. I have a index on ondate.
Is there a more efficient way to do it?
Thanks