<p>Don't Do This in Postgres: </p>
https://wiki.postgresql.org/wiki/Don%27t_Do_This
Open link
Flavio Juvenal
Posted on
October 13, 2021
Topics:
db, postgres
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>If you need to use more advanced database functions on Django annotations, such as Postgres <code>split_part</code>, you can make use of query expressions like <code>Func</code> </p>
↗
https://www.caktusgroup.com/blog/2016/06/20/query-expressions-are-amazing/
Carlos Coelho
Nov 27, 2017
Topics:
django, query expressions
<p>Fisher-Yates: the best way to shuffle an array and the dangers of naïveté </p>
↗
https://blog.codinghorror.com/the-danger-of-naivete/
Luca Bezerra
Nov 26, 2017
Topics:
algorithm, optimization, performance, shuffle
<p>When I should use either PUT or PATCH to handle updates #39338329</p>
↗
https://stackoverflow.com/questions/28459418/rest-api-put-vs-patch-with-real-life-examples/39338329
Anderson Resende
Nov 26, 2017
Topics:
http, rest
<p>If you have pure functions called multiple times you should try it functools.lru_cache</p>
↗
Anderson Resende
Nov 25, 2017
Topics:
functional, python
<p>Regex for matching URLs, useful to auto-linkify raw text: </p>
↗
https://gist.github.com/gruber/8891611
Flávio Juvenal
Nov 24, 2017
Topics:
regex, url
<p>Show size of various PostgreSQL objects like indexes, materialized views, tables, etc: </p>
↗
https://dba.stackexchange.com/a/96540/139133
Flávio Juvenal
Nov 23, 2017
Topics:
postgres
<p>It's a funny explanation about idempotence </p>
↗
http://www.restapitutorial.com/lessons/idempotency.html
Anderson Resende
Nov 22, 2017
Topics:
<p>Is REST DELETE really idempotent? </p>
↗
https://stackoverflow.com/questions/4088350/is-rest-delete-really-idempotent
Flávio Juvenal
Nov 22, 2017
Topics:
rest
<p>Stop Using word2vec: </p>
↗
http://multithreaded.stitchfix.com/blog/2017/10/18/stop-using-word2vec/
Flávio Juvenal
Nov 22, 2017
Topics:
ai, ml, nlp
<p>Reading a Postgres EXPLAIN ANALYZE Query Plan: </p>
↗
https://robots.thoughtbot.com/reading-an-explain-analyze-query-plan
Flávio Juvenal
Nov 22, 2017
Topics:
db, performance, postgres
<p>Using SVG as a placeholder: </p>
↗
https://medium.freecodecamp.org/using-svg-as-placeholders-more-image-loading-techniques-bed1b810ab2c
Lais Varejão
Nov 22, 2017
Topics:
ux
<p>CSS Grid: Supporting Browsers without Grid </p>
↗
https://www.smashingmagazine.com/2017/11/css-grid-supporting-browsers-without-grid
Lais Varejão
Nov 22, 2017
Topics:
css
<p>Tell Django to stop reporting particular 404s by tweaking the IGNORABLE_404_URLS setting.</p>
↗
Rebeca Sarai
Nov 21, 2017
Topics:
<p>List of userful url patterns: </p>
↗
https://simpleisbetterthancomplex.com/references/2016/10/10/url-patterns.html
Rebeca Sarai
Nov 21, 2017
Topics:
<p>On DRF, override to use different serializers for input and output in a same request: </p>
↗
https://stackoverflow.com/a/17552724/145349
Flávio Juvenal
Nov 17, 2017
Topics:
django, drf, rest
<p>Interesting tool to abstract some git concepts in the command line interface </p>
↗
https://github.com/sdg-mit/gitless
Hugo Bessa
Nov 16, 2017
Topics:
git, scm, version control
<p>If using <code>get_or_create</code> don't forget to make use of <code>defaults</code> parameter</p>
↗
Carlos Coelho
Nov 16, 2017
Topics:
django, python
<p>Dropbox releases PyAnnotate - auto-generate type annotations for mypy: </p>
↗
http://mypy-lang.blogspot.com.br/2017/11/dropbox-releases-pyannotate-auto.html
Flávio Juvenal
Nov 16, 2017
Topics:
mypy, python, typing
<p>Use django-postgres-extra for native upserts, more powerful HStoreField, more signals and indexes with conditions: </p>
↗
https://github.com/SectorLabs/django-postgres-extra
Flávio Juvenal
Nov 16, 2017
Topics:
django, postgres
<p>An instant JSON API for your SQLite databases: </p>
↗
https://github.com/simonw/datasette
Flávio Juvenal
Nov 16, 2017
Topics:
python, sql, sqlite
<p>Find bottlenecks by benchmarking your tests with pytest-benchmark </p>
↗
https://github.com/ionelmc/pytest-benchmark
Carlos Coelho
Nov 16, 2017
Topics:
pytest, python, testing
<p>The law of Demeter is an important foundation for OOP </p>
↗
https://www2.ccs.neu.edu/research/demeter/demeter-method/LawOfDemeter/paper-boy/demeter.pdf
Anderson Resende
Nov 15, 2017
Topics:
<p>Best REST overview I could find: </p>
↗
http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
Flávio Juvenal
Nov 15, 2017
Topics:
api, rest, web
<p>Django will store your dates in UTC if you set USE_TZ=True</p>
↗
Anderson Resende
Nov 11, 2017
Topics:
db, django
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