I've been trying to understand why PostgreSQL connections
are NOT reused while the code in the provider implements
a connection "cache".
Background: https://github.com/qgis/QGIS/issues/47391

The connections are (when "shareable"),
from QgsPostgresConn object,
put in a cache (two caches exist: "read-only"
and "read-write") but then are removed from the
cache when unreferenced.

Now the question is: why are them removed from the cache
on last unreference ? Doesn't that make the cache completely
useless ? In which case is a connection then kept alive ?

--strk; 

  Libre GIS consultant/developer
  https://strk.kbt.io/services.html
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to