Lessons about ORM
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.
- lessons shared
- 18
- people sharing
- 10
- database started in
- 2017








Tech Insights· dba.stackexchange.com
In Postgres, "empty updates" have the same cost per row as any other update. Even if the values won't change after the
UPDATE, the operation will still have the same performance:Shared by
Read on dba.stackexchange.com- ORM
- Performance
- PostgreSQL
Tech Insights· stackoverflow.com
Using window functions on Django ORM
Shared by
Read on stackoverflow.com- Django
- ORM
- SQL


Tech Insights· github.com
django-pgtrigger provides primitives for configuring Postgres triggers on Django models without raw SQL in many cases:
Shared by
Read on github.com- Django
- ORM
- SQL
- Trigger
- Link offline
djangotricks.blogspot.com · offline
Django Generic Functionality without Generic Relations:
Flavio Juvenal
Link offlineTech Insights· djangotricks.blogspot.com
Django Generic Functionality without Generic Relations:
Shared by
The original link on djangotricks.blogspot.com is no longer available.
Look for it on the Wayback Machine- Django
- ORM


Tech Insights· github.com
django-raw-sugar: Turns your raw SQL into a QuerySet.
Shared by
Read on github.com- Django
- ORM
- Performance
- Queryset
- SQL

baserow.io
How Baserow lets users generate Django models on the fly:
Baserow generates Django models dynamically to mutate user data. Learn how and why we do this at Baserow.
Flavio Juvenal

Tech Insights· baserow.io
How Baserow lets users generate Django models on the fly:
From baserow.io
Baserow generates Django models dynamically to mutate user data. Learn how and why we do this at Baserow.
Shared by
Read on baserow.io- Django
- Model
- ORM

github.com
Django pagination based on the seek method / keyset paging / offset-less pagination:
:cyclone: Pagination based on the seek method / keyset paging / offset-less pagination - nitely/django-infinite-scroll-pagination
Flavio Juvenal

Tech Insights· github.com
Django pagination based on the seek method / keyset paging / offset-less pagination:
From github.com
:cyclone: Pagination based on the seek method / keyset paging / offset-less pagination - nitely/django-infinite-scroll-pagination
Shared by
Read on github.com- Django
- ORM
- Pagination
stackoverflow.com
How can I cast a DateField() + TimeField() to local time in a Django QuerySet?
Flavio Juvenal
Tech Insights· stackoverflow.com
How can I cast a DateField() + TimeField() to local time in a Django QuerySet?
Shared by
Read on stackoverflow.com- Datetime
- Django
- ORM
- PostgreSQL
- Timezone

docs.djangoproject.com
In Django ORM you can add
order_by('?')to a queryset to randomize results - but be careful because it can slow them significantly #order-byVanessa Barreiros

Tech Insights· docs.djangoproject.com
In Django ORM you can add
order_by('?')to a queryset to randomize results - but be careful because it can slow them significantly #order-byShared by
Read on docs.djangoproject.com- Django
- ORM
- Python

schegel.net
Great post on optimizing Django ORM Queries:
The Django ORM (Object Relational Mapping) is one of the most powerful features of Django. It enables us to interact with the database using Python code instead of SQL. On this blogpost you will learn how to efficiently make queries using the ORM.
Rebeca Sarai

Tech Insights· schegel.net
Great post on optimizing Django ORM Queries:
From schegel.net
The Django ORM (Object Relational Mapping) is one of the most powerful features of Django. It enables us to interact with the database using Python code instead of SQL. On this blogpost you will learn how to efficiently make queries using the ORM.
Shared by
Read on schegel.net- Django
- ORM
Tech Insights
If you use iterator() to run the query, prefetch_related() calls will be ignored since these two optimizations can't be used together
Shared by
- Django
- ORM



caktusgroup.com
How to Use Django Bulk Inserts for Greater Efficiency
See how we use Django to speed up operations that insert a significant amount of data into a database.
Gustavo Carvalho

Tech Insights· caktusgroup.com
How to Use Django Bulk Inserts for Greater Efficiency
From caktusgroup.com
See how we use Django to speed up operations that insert a significant amount of data into a database.
Shared by
Read on caktusgroup.com- Django
- ORM


Tech Insights· blog.acolyer.org
Excellent article about how ORMs cause leaky abstractions that lead to performance issues and how fixing them is generally simple:
Shared by
Read on blog.acolyer.org- DB
- ORM
- Performance
- SQL
stackoverflow.com
If you need to get only one field from a related model you should use annotate
Anderson Resende
Tech Insights· stackoverflow.com
If you need to get only one field from a related model you should use annotate
Shared by
Read on stackoverflow.com- Django
- ORM
Book a call
Found it useful?
Let’s put it to work.
Tell us about your product and the problem in front of you. We’ll bring what we’ve learned on real projects.
Tell us about your product, and we’ll bring what we’ve learned.
Still prefer the good old email? Contact us



