Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
How can you 'Bake' queries in Django, does an ORM extension exist for this?
25 views
Skip to first unread message
rol...@gmail.com
unread,
Apr 9, 2021, 11:11:35 AM
4/9/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Django's ORM is pretty slow. Sometimes Django can spend more time
building the SQL
than actually fetching a singular object.
SQLAlchemy has this
https://docs.sqlalchemy.org/en/14/orm/extensions/baked.html
Which has been moved into SQLAlchemy core.
https://docs.sqlalchemy.org/en/14/core/connections.html#sql-caching
Are there any extensions that can do this in Django, or a safe way to do this simply? Conceptually I'd need to stick and LRU cache around the query compiler. It seems like something that someone must have done already.
Rollo
Reply all
Reply to author
Forward
0 new messages