pg_temp.tipg_catalog takes ~1 minute when there are large spatial tables #139
-
I have been using TiPG deployed as a Lambda function via the 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 |
Beta Was this translation helpful? Give feedback.
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.
@hrodmn In theory we could remove the internal catalog to list the collections
dynamically
(previous discussion: #37)As of today, we don't have $ nor time to work on this.
The main issue might come from
tipg/tipg/sql/dbcatalog.sql
Lines 51 to 88 in e921266