<p>If you use iterator() to run the query, prefetch_related() calls will be ignored since these two optimizations can't be used together</p>
Open link
Carlos Coelho
Posted on
November 28, 2019
Topics:
django, orm
Let's talk!
Clients
Services
Blog
About us
Careers
Let's talk!
SOFTWARE
HOUSE
Clients
Services
MVP Development
Web Development
Staff Augmentation
Insights
Blog
Learnings
Careers
About us
Contact us
Learnings
Boost your knowledge with the insights from our expert team.
accessibility
agile
ai
api
architecture
aws
career
celery
communication
concurrency
css
data
database
db
debug
design
design system
development
devops
django
docker
documentation
figma
frontend
git
html
javascript
js
leadership
management
metrics
ml
orm
performance
postgres
process
product
product design
python
react
redux
research
security
software
sql
sre
test
testing
tests
typescript
ui
ux
web
workflow
<p>Use python freezegun lib to freeze your dates when making tests</p>
↗
https://github.com/spulec/freezegun
Anderson Resende
Nov 9, 2017
Topics:
python, test
<p>If you need to create a fixture based on a single record from the database, you can use <code>django-fixture-magic</code> </p>
↗
https://github.com/davedash/django-fixture-magic
Carlos Coelho
Nov 9, 2017
Topics:
django
<p>Font Face Observer is a fast and simple web font loader. You can use it to load fonts and customise your browser’s font loading behaviour. </p>
↗
https://fontfaceobserver.com/
Felipe Farias
Nov 7, 2017
Topics:
css, fonts
<p>You can use itertools.chain to group different querysets: #itertools.chain</p>
↗
https://docs.python.org/2/library/itertools.html
Anderson Resende
Nov 6, 2017
Topics:
django
<p>webpreview - Extracts OpenGraph, TwitterCard and Schema properties from a webpage </p>
↗
https://github.com/ludbek/webpreview
Flávio Juvenal
Nov 6, 2017
Topics:
facebook, library, python, schema, twitter
<p>Show database, table and indexes size in Postgres: </p>
↗
https://www.niwi.nz/2013/02/17/postgresql-database-table-indexes-size/
Flávio Juvenal
Nov 3, 2017
Topics:
database, postgres
<p>Queries for Postgres Lock Monitoring: </p>
↗
https://wiki.postgresql.org/wiki/Lock_Monitoring
Flávio Juvenal
Nov 3, 2017
Topics:
<p>Dramatiq: alternative to Celery and RQ: </p>
↗
https://dramatiq.io/motivation.html
Flávio Juvenal
Nov 2, 2017
Topics:
celery, python, rq, tasks
<p>Postgres SQL Views in Django: </p>
↗
https://github.com/mypebble/django-pgviews
Flávio Juvenal
Nov 2, 2017
Topics:
django, postgres
<p>How to make your code 80 times faster with PyPy: </p>
↗
https://morepypy.blogspot.com.br/2017/10/how-to-make-your-code-80-times-faster.html
Flávio Juvenal
Nov 2, 2017
Topics:
optimization, performance, pypy, python
<p>statically: compiles a python function with cython using only a decorator - </p>
↗
https://github.com/AlanCristhian/statically
Flávio Juvenal
Nov 2, 2017
Topics:
cython, optimization, performance, python
<p>Great site to help you easily create nice css animations </p>
↗
http://animista.net
Hugo Bessa
Nov 1, 2017
Topics:
animations, css
<p>The Benefits of CSS Variables: </p>
↗
https://jonathan-harrell.com/unlocking-benefits-css-variables/
Lais Varejão
Oct 31, 2017
Topics:
css
<p>Use <code>TerminalIPythonApp</code> %lprun to run line_profiler in ipython: #line_profiler</p>
↗
https://github.com/rkern/line_profiler
Flávio Juvenal
Oct 27, 2017
Topics:
optimization, python
<p>Error boundaries in React 16 catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI #introducing-error-boundaries</p>
↗
https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html
Rebeca Sarai
Oct 26, 2017
Topics:
javascript, react
<p>How to create symmetrical relationships in Django using ManyToMany's "through" </p>
↗
http://charlesleifer.com/blog/self-referencing-many-many-through/
Luca Bezerra
Oct 25, 2017
Topics:
django, orm, symmetrical
<p>Nice answer to "What's happen when you type google.com?" </p>
↗
https://github.com/alex/what-happens-when
Victor Carriço
Oct 25, 2017
Topics:
<p>Which hashing algorithm is best for uniqueness and speed? </p>
↗
https://softwareengineering.stackexchange.com/questions/49550/which-hashing-algorithm-is-best-for-uniqueness-and-speed
Flávio Juvenal
Oct 24, 2017
Topics:
hashing
<p>Scaling Django Admin Date Hierarchy: </p>
↗
https://medium.com/@hakibenita/scaling-django-admin-date-hierarchy-85c8e441dd4c
Flávio Juvenal
Oct 23, 2017
Topics:
admin, django
<p>Useful icon fonts to PNG converter: </p>
↗
http://fa2png.io/
Lais Varejão
Oct 23, 2017
Topics:
<p>The story of CSS Grid from it’s creators: </p>
↗
https://alistapart.com/article/the-story-of-css-grid-from-its-creators
Lais Varejão
Oct 23, 2017
Topics:
css, css grid
<p>Implementing faceted search with Django and PostgreSQL: </p>
↗
https://simonwillison.net/2017/Oct/5/django-postgresql-faceted-search/
Flávio Juvenal
Oct 23, 2017
Topics:
django, postgres, search
<p>Auto-incremented primary keys are not very safe, consider using uuid </p>
↗
https://medium.com/@jdedek/using-uuids-as-primary-keys-ca1fb409bb7c
Hugo Bessa
Oct 23, 2017
Topics:
database, security
<p>If you need to transform a string into a valid path (and pass parameters to it) in 'react-router style', use PathToRegexp </p>
↗
https://www.npmjs.com/package/path-to-regexp
Luca Bezerra
Oct 20, 2017
Topics:
javascript, npm, path, regex
Previous
Next
Close Cookie Preference Manager
Cookie Settings
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts.
Check our privacy policies.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Analytics
Cookies helping understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Marketing
Cookies used to deliver advertising that is more relevant to you and your interests.
Personalization
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).
Save settings
Accept all
We use Cookies to promote our services.
Settings and Privacy.
Accept