[gdal-dev] [External] : Re: GDAL driver Open() calls
Fengting Chen
fengting.chen at oracle.com
Tue Nov 28 17:56:15 PST 2023
The attached are two output logs with debug on. You can see that the output from GDAL 3.7 has two extra queries at the beginning. These queries only happen when the eAccess is GA_ReadOnly. The logs are generated with the same command parameters to gdal_translate.
From: Even Rouault <even.rouault at spatialys.com>
Date: Tuesday, November 28, 2023 at 6:36 PM
To: Fengting Chen <fengting.chen at oracle.com>, gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
Subject: [External] : Re: [gdal-dev] GDAL driver Open() calls
Hi,
Please share the stack trace (on a debug build) of both instances where GDALOpen() is called
Even
Le 28/11/2023 à 23:40, Fengting Chen via gdal-dev a écrit :
Hi,
I noticed from the GeoRaster driver that in GDAL 3.6 and 3.7 (maybe 3.8 too), there are two GDALOpen() calls on the driver with GDALOpenInfo eAccess as GA_ReadOnly, even when the GeoRaster is the output format in gdal_translate command. There are no such calls in GDAL 3.4. I am wondering if these invocations of Open() with eAccess as GA_ReadOnly are necessary when the driver is the output driver. This has caused performance issue for the GeoRaster driver when a user is trying to load the data into Oracle database because it has two unnecessary reads from the database. If these Open() calls are unavoidable, how to differentiate the calls whether it is as input or as output in the gdal_translate command?
Thanks.
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!IqVgHqcg5DBb3fu5ZpXizGqYnezdKvCzFALf06Gt-Vs7RiPPCXFACcefd_slweWtNCqHy-G-OsmoPt9XZqR4DOWs5UiD$>
--
http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!IqVgHqcg5DBb3fu5ZpXizGqYnezdKvCzFALf06Gt-Vs7RiPPCXFACcefd_slweWtNCqHy-G-OsmoPt9XZqR4DFVEpZ99$>
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/20231129/fbf5861d/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdaltranslate_341_log.txt
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231129/fbf5861d/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdaltranslate_370_log.txt
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231129/fbf5861d/attachment-0003.txt>
More information about the gdal-dev
mailing list