shlogg · Early preview
Mircea Cadariu @mcadariu

Lead Developer @sig_eu • Data systems builder • Code mender • Java • Spring • PostgreSQL • Highlands explorer • Hello 👋🏻

Optimizing PostgreSQL Loading Speed For Faster Data Ingestion

Improved PostgreSQL loading speed by adjusting table structure, tuning config, disabling full page writes & removing constraints/indexes. Used unlogged tables & \copy command to load data from CSV file in 35.41s.

Modeling Hierarchical Data With PostgreSQL

Recursive CTEs use `WITH RECURSIVE` clause to define recursive query, adjacency lists store each node's children separately & use joins, nested sets store ancestors/descendants in separate table & use range queries.

Optimizing Query Performance On Large Tables In PostgreSQL

Optimize PostgreSQL query performance: Increase stats collection, adjust `random_page_cost` & understand query planner decisions to boost large table queries!

Optimizing PostgreSQL Queries With Loose Index Scans

Optimizing PostgreSQL queries: Use loose index-only scans for efficient retrieval of recent records, but weigh the trade-offs with increased indexing overhead.