[gdal-dev] Can GDAL driver be reused by GDAL python binding

Even Rouault even.rouault at spatialys.com
Mon Jul 7 14:23:05 PDT 2025


Hi,

Connection pooling is an internal implementation driver of each driver. 
You have to be careful about multi-threaded use cases if you want to 
implement that though. The PostGISRaster driver has some connection 
pooling. See PostGISRasterDriver::GetConnection()

Even

Le 07/07/2025 à 21:18, Fengting Chen via gdal-dev a écrit :
>
> Hi,
>
> A Python program can invoke GDAL driver through gdal.open() to 
> read/write raster/vector data. Is it possible for the GDAL driver to 
> be reused in order to avoid reinitializing the driver for each 
> gdal.open() call? For example, if a GDAL driver to a database 
> implements a connection pool, will each gdal.open() call be able to 
> ask the driver to retrieve a db connection from the connection pool, 
> instead of creating a new database connection?
>
> Thanks!
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250707/e1129b31/attachment-0001.htm>


More information about the gdal-dev mailing list