Jak navrhl Igor, zkuste složený index: CREATE INDEX index_invites_email_created_at on invites(email,created_at);