home.social

#databaseoptimization — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #databaseoptimization, aggregated by home.social.

  1. #throwback Want to push PostgreSQL performance further? ⚡ Somdyuti Paul dives into advanced tuning with real-world demos—plan caching, GEQO, partitions, parallel queries, and index scan pitfalls. Practical insights you can apply immediately.

    ▶️ Watch now! youtube.com/watch?v=IPlHrUHKMY

    #PostgreSQL #PGDay #PPDD #PerformanceTuning #DatabaseOptimization

  2. 🚀 #TimescaleDB enhances #Postgres for time-series data and real-time #analytics:

    • 📊 Hyperstore: Hybrid storage approach for efficient data handling
    • 🏎️ Chunk-skipping: 7x faster queries, 87% less storage
    • 🔄 Compressed tuple filtering: 500x faster updates and deletes
    • 📈 Index scans: 360x faster upserts for high-cardinality datasets
    • 💾 Tiered storage optimizations: 400x faster queries on data in #S3

    #DatabaseOptimization #PerformanceBoost #DataManagement #DevOps #database

    Key improvements:
    - Intelligent data partitioning and querying
    - Efficient compression and decompression techniques
    - Optimized index usage for upserts
    - Enhanced tiered storage architecture

    timescale.com/blog/making-post

  3. Check out these 2 queries:

    Query 1:

    SELECT ...
    FROM t1
    JOIN t2 ON t1.id IN (t2.id1, t2.id2);

    Query 2:

    SELECT ...
    FROM t1
    JOIN t2 ON t1.id = t2.id1
    UNION
    SELECT ...
    FROM t1
    JOIN t2 ON t1.id = t2.id2;

    They both return the same data but since most database engines struggle with OR joins, the latter will outperform the former by at least an order of magnitude.