Hacker News new | ask | show | jobs
by zzzeek 4797 days ago
I think you should run EXPLAIN ANALYZE on both queries and see what you find.
1 comments

I now understand that it won't be optimized away because it's doing something, and I think I still want it to do that something. I've run into plenty of ORM limitations and use custom SQL for procedures and custom joints, but I still wouldn't call Django ORM stupid for doing what it's doing, in this case.