-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What format of the geometry is faster for T-Rex? #272
Comments
This is really extremely slow. Is there an index on the geometry field ( |
Here is a log from DB for all of the queries that are longer than 4 seconds |
Geometry index usage looks fine. How's the timing without using the |
This is a log without using the Also, this is a generation timing using ec2 r5.4xlarge (16 vCPU 128 GB RAM) and with DB db.r6g.4xlarge (16 vCPU 128 GB RAM) without the
Looks like I know the answer to why generation is so slow. However, still, wondering what it's better - polygon or multipolygon? |
Hi there,
in the project we are building at the moment the biggest problem is tiles generation speed.
So, these are input parameters:
T-Rex version 0.14.1
Config in toml.
Number of records in DB - 13231
Number of records that match query in selected bbox - 60
Generation logs for:
Timing
Generation was performed on ec2 r5.4xlarge (16 vCPU 128 GB RAM) and with DB db.r6g.4xlarge (16 vCPU 128 GB RAM)
With bigger zoom levels, like 17 or 18 this takes hours. We are wondering if the issue is in data that we store as multipolygons. Those multipolygons contain from 1 to 2-3K individual polygons.
From the performance perspective, would it be better to have these data represented in DB as polygons, so instead of 60 records, in our case, we will have several thousand? Looking forward to recommendations.
Note: this is a part of the query that takes the most of the time:
The text was updated successfully, but these errors were encountered: