You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am querying a db table with many rows. I want to filter by a field, then get the 5 objects with the greatest values. I was thinking something like this, to get the 5 oldest people above the age of 18:
If I had to get all fields, then sort them within the Rust code and not the db query, I could risk high RAM usage. Also with the risk of less readable/fluent code.
Activity