Adrienne Domingus

Sep 18, 2016

3 min read

Django, Databases, and Decorators: Routing Requests to Different Databases

Connecting and using multiple databases in Django

As a growing company with a growing customer base, we’re always thinking about ways to boost the performance of our app (but who isn’t?). We’ve got some long-running queries that occasionally result in page timeouts, and if not, some general slowness for the user. These are things to be avoided. This week, we connected our follower database to the app to pull some of these read-only queries off of the main database to…