
There are cheap and expensive methods to achieve this goal. The following are methods to achieve this goal starting from the least efficient to the most efficient methods:
- Using
@Query
The problem with the above select statement is that your database will order all records before returning the items hence this is expensive in large data sets
2 reactions
0 comments
Be the first one to share your thoughts