4 ms·
> I generally don't need to optimize my queries because my apps are small Same situation here. I find that being mindful of the ORM is enough to save me from o
by Nextgrid 5y ago
> I generally don't need to optimize my queries because my apps are small
Same situation here. I find that being mindful of the ORM is enough to save me from obviously bad queries (fetching 100 objects and then running additional queries for each one), for the rest I get away with it as it's not a problem in practice. Sure, I will probably save an extra milisecond here and there and maybe in the end be able to run my entire DB off a very small computer, but (bare-metal) hardware is so cheap that a few stray queries here and there won't break the bank.
Nevertheless I've installed the package and will be trying it out, but I have yet to be convinced that eliminating additional queries all the time is worth the extra developer effort.
- stavros 5y agoI tried it, and came to the same conclusion as you. Fortunately, the package doesn't require you to do it all the time, you can pick a few at-risk functions and only disallow template queries there.