|
|
|
|
|
by chc
1260 days ago
|
|
Personally, I find the Rails version a bit more elegant because it is declarative, reusable and composable, while Django's approach is a more utilitarian "just write the dang query when you want it." But both are a great illustration of how a well-designed ORM can give you the tools you need to get good performance. |
|
https://docs.djangoproject.com/en/4.1/topics/db/managers/#cu...