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

Egress problems and where to find them

Blog post from PlanetScale

Post Details
Company
Date Published
Author
-
Word Count
2,196
Language
English
Hacker News Points
-
Summary

The blog post by Simeon Griggs focuses on optimizing database queries to reduce egress, which is the data transferred out from a database over the public internet, often billed by cloud providers. It highlights the importance of making query responses smaller and less frequent to enhance application performance and reduce costs. Strategies include selecting only necessary columns, using pagination, implementing caching, and considering private connections like AWS PrivateLink to avoid public internet data transfer. The text also details the use of Postgres features, such as jsonb_agg() for JSONB column filtering, and tools like PlanetScale Insights to monitor query sizes and egress usage patterns. It emphasizes the proactive optimization of database queries to achieve faster responses, cleaner code, and lower resource demands, encouraging developers to audit their code for unnecessary data requests and to leverage query tagging for better performance tracking.