Replies: 1 comment 6 replies
-
@hrodmn In theory we could remove the internal catalog to list the collections As of today, we don't have $ nor time to work on this. The main issue might come from Lines 51 to 88 in e921266 Where we try to get the spatial and temporal extents for each table! This should be fairly quick if there are indexes on both but maybe not. Maybe we could add a settings to turn ON/OFF this step cc @bitner |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using TiPG deployed as a Lambda function via the
eoapi-cdk
constructs and it is awesome! However, as the size of my spatial tables increases, the FastAPI application startup time exceeds the default timeout for the Lambda function (30 seconds). I am able to use TiPG successfully on the same database locally viauvicorn
, but I can see that the application takes a minute to reach an active state.My largest table has 3.6 million polygon geometries in it and has foreign keys on two other tables. On an identical database with only a few thousand records in that table the startup time is about 1 second! Has my deployment outgrown the Lambda option or if there is something I need to configure differently in TiPG (or even my database schema) to improve application performance? If I was only running the startup occasionally (i.e. on an always-on server) I don't think I would have a problem, but I would like to keep using Lambda if possible since we are not using the service very heavily right now.
I did some local debugging and can see that the
pg_temp.tipg_catalog
function is taking almost all of the startup time.Beta Was this translation helpful? Give feedback.
All reactions