Home / Companies / Carto / Blog / Post Details
Content Deep Dive

PostGIS Performance Profiling

Blog post from Carto

Post Details
Company
Date Published
Author
CARTO Contributors
Word Count
1,370
Company Posts That Month
31
Language
English
Hacker News Points
-
Post removed?
No
Summary

The CARTO team is optimizing PostGIS performance, focusing on reducing database query execution time to improve map rendering speed. They've identified two key areas for improvement: Mapnik rendering and MVT (Vector Tile) rendering. To optimize Mapnik rendering, they've modified the `ST_AsTWKB()` function to minimize memory allocations for small objects like points, and changed the implementation of `ST_Simplify()` and `ST_RemoveRepeatedPoints()` functions to reduce copying data around. For MVT rendering, they've made changes to the `ST_AsMVTGeom()` function to avoid unnecessary copying and polygon validity checks, which resulted in significant performance gains. These optimizations aim to improve map rendering speed while maintaining performance for other use cases.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.