(no title)
sbstp | 1 year ago
WHERE Posts.CreateAt > ?1 OR (Posts.CreateAt = ?1 AND Posts.Id < ?2) ORDER BY Posts.CreateAt ASC, Posts.Id DESC
I now wonder if it might be possible to use a negation operator to invert the sorting order, like:
(Posts.Id, -Posts.CreateAt) < (?1, ?2) ORDER BY Posts.CreateAt ASC, Posts.ID DESC
and keep the performance improvement.
No comments yet.