Giter Club home page Giter Club logo

django-epiphanies's Introduction

img >> Lessons, musings, and resources on web development with Django <<

 

Architecture

Performance Optimizations

  • Django Database Optimization Tips -> A few common DB optimizations with examples.

  • Mitigating (n+1) Query Issues with select_related() & prefetch_related() -> I find that the Django documentation does a better job at explaining the role of select_related and prefetch_related methods for query optimizations than most other resources. Check out the section where the doc explains how to use Prefetch object to further control the prefetch operation. It's crazy powerful.

  • Django Select Related & Prefetch Related Examples -> Two YouTube videos that I found useful to understand select and prefetch related methods. However, first, you should definitely go through the documentation listed above. It's awesome.

  • PostgreSQL Indexing : How, Why, and When - Curtis Maloney -> Here, the speaker adds indexes on a simple PostgreSQL table incrementally and runs Explain on different queriers to showcase the performance improvements.

  • Unlocking the full potential of PostgreSQL indexes in Django - Haki Benita -> While, the loop of adding the default B-Tree index to the target columns and running Explain on the query works well enough, the latest version of Django opens up the opportunities of leveraging more esoteric indexes offered by PostgreSQL. Apart from B-Tree Index, the presenter also explores Inclusive Index, Partial Index, Function Based Index, Hash Index, and Block Range Index aka BRIN.

  • Re-Introducing Hash Indexes in PostgreSQL - Haki Benita -> Prior to PostgreSQL 10, Hash indexes were extremely limited compared to the default B-Tree indexes and offered too little to be considered as a viable alternative. However, a few things has changed since then and this post stacks Hash indexes against B-Tree.

  • Hunting Performance in Django Code - Sümer Cip -> This talk offers a great starting point for learning about performance profilers for your Python application. It primarily talks about the distinctions between different tracing and sampling profilers.

Misc

Django Rest FrameWork

  • DRF Serializer Relations -> DRF serializer relations can be confusing at times. At my workplace, we were using HyperlinkedModelSerializer for everything and this would at times, lead to confusing errors. By default, when ModelSerializer is used to serialize a model, DRF uses PrimaryKeyRelatedField to resolve field relationships. However, it uses HyperlinkedRelatedField to resolve relationships if HyperlinkedModelSerializer is used instead.

Tools & Projects

Books

✨ 🍰 ✨

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.