Docker Compose in Production

Docker Compose facilitates the deployment of Dockerized applications. A series of Docker commands and arguments to start your application become a single command; docker-compose up. Such an invaluable tool makes deploying in both development and production environments a breeze. However, applications are generally run and configured much differently in production than in development. In this post, we will explore ways to separate your development and production configurations while keeping things DRY and maintaining the simplicity of Docker Compose commands.

Continue reading Docker Compose in Production

Avoid Memory Issues with Django’s bulk_create

When inserting a large number of objects into the database with Django, your first thought should be to use bulk_create. It is much more efficient than calling create for each object, and it generally only results in a single query. However, when dealing with tens of thousands, hundreds of thousands, or even more objects, you may run into out of memory errors.

Continue reading Avoid Memory Issues with Django’s bulk_create