开发者

django.contrib.gis.db.backends.postgis vs django.db.backends.postgresql_psycopg2

开发者 https://www.devze.com 2023-03-31 17:49 出处:网络
If a gis application has some tables which don\'t have gis related columns, does the performancebetter when use multiple databases (django.db.backends.postgresql_psycopg2 and django.contrib.gis.db.bac

If a gis application has some tables which don't have gis related columns, does the performance better when use multiple databases (django.db.backends.postgresql_psycopg2 and django.contrib.gis.db.backends.postgis) compared using django.contrib.gis.db.backends.postgis only?

Multiple Databases also introduce some performance overhead and complexity. Could anyone show me the best practice for this 开发者_开发问答scenario?


The performance difference will be almost completely invisible. django.contrib.gis.db.backends.postgis just extends django.db.backends.postgresql_psycopg2 to add the PostGiS types. It is definitely not worth going through the complexity of multiple databases just to use the two different backends.

0

精彩评论

暂无评论...
验证码 换一张
取 消