Hacker News new | ask | show | jobs
by Thasc 4151 days ago
When interacting with a (well-designed and indexed) database, stick as much filtering and sorting as you can in the database query, rather than using a less specific database query and then crunching the result about some more in your own code.