Skip to content

Commit 9c8d990

Browse files
committed
new django orm resource
1 parent 2294625 commit 9c8d990

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎content/pages/03-data/08-django-orm.markdown‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ that have been added throughout the project's history.
9090
avoid with `ForeignKey` field relationships, handling IDs and many other
9191
edge cases that come up when frequently working with Django's ORM.
9292

93+
* [Working with huge data sets in Django](https://blog.labdigital.nl/working-with-huge-data-sets-in-django-169453bca049)
94+
explains how to slice the data you retrieve by query into pages and then
95+
use `prefetch_related` on a subset of the data rather than your whole
96+
data set.
97+
9398
* [Solving performance problems in the Django ORM](https://medium.com/@hansonkd/performance-problems-in-the-django-orm-1f62b3d04785)
9499
gives a slew of great code snippets to use with `django.db.connection` so
95100
you can discover issues such as unexpected extra queries and problematic
@@ -125,3 +130,4 @@ following resources should get you past the initial hurdles.
125130
contains a ton of awesome code examples for testing your
126131
migrations to ensure data migrations work well throughout
127132
the lifecycle of your Django project.
133+

0 commit comments

Comments
 (0)