Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jimmaswell
on June 26, 2016
|
parent
|
context
|
favorite
| on:
What ORMs have taught me: just learn SQL (2014)
In this example, it seems like it could be an issue that you take everything and then only use the first 10, instead of only taking the first 10 to begin with. Is there a way to not make it take them all, like putting the limit parameter in where()?
kaolinite
on June 26, 2016
[–]
Rails doesn't execute the query until you actually use it in some way, by which point it knows you've added a limit clause.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: