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
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.








caktusgroup.com
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
From caktusgroup.com
See how we use Django to speed up operations that insert a significant amount of data into a database.
Shared by
docs.djangoproject.com
Gustavo Carvalho
Tech Insights· docs.djangoproject.com
Shared by
docs.djangoproject.com
If you wanna know if your get_or_create was actually created the object instead of retrieving it, pass "created" after your variable's name and receive a boolean with the status of your get_or_create #get-or-create
Amanda Savluchinske
Tech Insights· docs.djangoproject.com
If you wanna know if your get_or_create was actually created the object instead of retrieving it, pass "created" after your variable's name and receive a boolean with the status of your get_or_create #get-or-create
Shared by
Tech Insights· docs.djangoproject.com
Shared by
chase-seibert.github.io
Say you have a bunch of developers that occasionally need Django shell access to production, but you want this to be an exceptional event. Here is a drop-in replacement for ./manage.py shell that defaults to read-only mode, but lets the developer switch to writable mode on the fly, while notifying the team.
Carlos Coelho
Tech Insights· chase-seibert.github.io
From chase-seibert.github.io
Say you have a bunch of developers that occasionally need Django shell access to production, but you want this to be an exceptional event. Here is a drop-in replacement for ./manage.py shell that defaults to read-only mode, but lets the developer switch to writable mode on the fly, while notifying the team.
Shared by
github.com
Easily add search/filter functionality to Django projects - knipknap/django-find
Flávio Juvenal
Tech Insights· github.com
From github.com
Easily add search/filter functionality to Django projects - knipknap/django-find
Shared by
Tech Insights· github.com
Shared by
stackoverflow.com
Amanda Savluchinske
Tech Insights· stackoverflow.com
Shared by
Tech Insights· stackoverflow.com
Shared by
github.com
Using Django REST Framework to build your APIs and getting confused between javascript's camelCase and the API's snake_case pattern while developing your front-end client? converts your snake_case attributes to camelCase when using JSON format
Hugo Bessa
Tech Insights· github.com
Using Django REST Framework to build your APIs and getting confused between javascript's camelCase and the API's snake_case pattern while developing your front-end client? converts your snake_case attributes to camelCase when using JSON format
Shared by
revsys.com
A very common pattern in a Django Project is to have some kind of 'model-type' relationship, where you have some kind of object that can only belong to one of the types defined in the database.
Flávio Juvenal
Tech Insights· revsys.com
From revsys.com
A very common pattern in a Django Project is to have some kind of 'model-type' relationship, where you have some kind of object that can only belong to one of the types defined in the database.
Shared by
docs.djangoproject.com
If you want to add a unique non-nullable field to a table with existent rows, you'll need to a few extra steps because Django generates the value to populate existent rows only once. For the extra steps, check these instructions in #migrations-that-add-unique-fields
Carlos Coelho
Tech Insights· docs.djangoproject.com
If you want to add a unique non-nullable field to a table with existent rows, you'll need to a few extra steps because Django generates the value to populate existent rows only once. For the extra steps, check these instructions in #migrations-that-add-unique-fields
Shared by
Tech Insights· fosstack.com
Shared by
Tech Insights· docs.djangoproject.com
values(). Avoid default ordering! #interaction-with-default-ordering-or-order-byShared by
github.com
assertNumQueries on steroids!Keep detailed records of the performance of your Django code. - adamchainz/django-perf-rec
Flávio Juvenal
Tech Insights· github.com
assertNumQueries on steroids!From github.com
Keep detailed records of the performance of your Django code. - adamchainz/django-perf-rec
Shared by
Book a call
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



