Solving Django N+1 problem

In this article, you will find answers to the following questions: Optimizing Django model relation queries with select_related and prefetch_related When working with Django models, you may run into inefficient queries. This can have a significant impact on performance, especially when dealing with large datasets. Django’s select_related and prefetch_related methods are powerful tools to improve […]

READ MORE

Safe database migrations in Django

The simple process of renaming a DB column becomes more complex when DB migrations in specific scenarios are applied before code updates by pipeline. It means that there may be a timeframe, when the “old” code will be running against the “new” database. Therefore, using the built-in Django rename functionality will lead to errors. “Old“ […]

READ MORE