Performance using GeoPackages as datasources #1277
Replies: 1 comment 1 reply
-
@StefanSchuhart - Thank you for raising this issue. We have looked into this and analyzed requests with a profiler. We found an issue (#1284) and have updated the code and the This has improved feature requests with a GeoPackage backend significantly, when many features are requested. For testing I have used GeoJSON feature requests in the Zoomstack API (collection "roads_local) deployed on my notebook (maximum limit increased to 100000). The API has a GeoPackage feature store. Results:
We see some potential for additional optimizations in the pipeline that processes the SQL results and encodes the data in GeoJSON, but overall the profiling results now look as we would have expected them. I have also updated https://demo.ldproxy.net/. Accessing that remote API with I am not an SQLite expert and I do not have any recommendations how to potentially speed up queries from a GeoPackage. Does this help? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm testing ldproxy to provide data via OGC api features. I am a little disappointed with the data retrieval because of the slow delivery. Running this query oaf/streets/collections/streets/items?f=json&limit=6000 to receive approximately 800 kB of data the query returns after multiple seconds ranging from 2s to 4s. Thats very slow and it gets even slower with more data. Also, it seems to me that the same query never benefits from a query cache or whatsoever, I'm used to, when running a DBMS like PostgreSQL.
I tested on an Azure VM with 2 CPUs and 8 GB of RAM. Its clear to me that this is not a sophisticated test. Are there an configuration options to speed up reading from Geopackages? Using Gepackages would be my preferred deployment method for ldproxy in container environments.
Here is a snippet from my provider configuration:
Beta Was this translation helpful? Give feedback.
All reactions