This is made to not assume that the default db is the one always used.
In my use case we're keeping a Django application in two modes tile server and application server and then, depending on the deploy we'll use one or another.
For this to work we configured two databases in django, default refers to application and vtiles to the DB storing all the features for tiling.
This change ensures that if we provide the queryset with a using(Dbname) the end query ends up in the proper database.
This is made to not assume that the default db is the one always used.
In my use case we're keeping a Django application in two modes
tile server
andapplication server
and then, depending on the deploy we'll use one or another.For this to work we configured two databases in django,
default
refers to application andvtiles
to the DB storing all the features for tiling.This change ensures that if we provide the queryset with a
using(Dbname)
the end query ends up in the proper database.