← Back
Milan Jovanovic February 19, 2025 29s

This Weird LINQ Trick Makes Cursor Pagination FAST

Summary

This tech tip discusses optimizing cursor pagination queries in SQL, specifically when sorting by date and ID. The core problem is that a standard approach often leads to suboptimal query plans and the solution involves using a "less than or equal" function with a value tuple for blazing-fast tuple comparison. The practical takeaway is to leverage this tuple comparison for improved performance in cursor pagination.

View original episode ↗