Skip to content
ITNotes ITNotes

From Terminal to Cloud

  • AI
  • DevOps
  • HomeLab
  • Linux
  • Networking
  • Programming
  • English
    • English
    • Tiếng Việt
    • 日本語
  • AI
  • DevOps
  • HomeLab
  • Linux
  • Networking
  • Programming
  • English
    • English
    • Tiếng Việt
    • 日本語
Home » Database Performance
Database tutorial - IT technology blog
Posted inDatabase

Prevent Redis Cache Stampede: Mutex Locking vs Probabilistic Early Expiration (XFetch)

October 10, 2026
Cache stampedes can crush databases when high-traffic keys expire. Discover how to resolve dogpiling by comparing distributed mutex locks with the probabilistic XFetch algorithm in Redis and Python.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Mastering MongoDB Indexing: ESR Rule and Query Profiling with explain()

October 10, 2026
Slow MongoDB queries usually trace back to misplaced compound index keys and expensive in-memory sorts. Learn how to profile query execution plans with explain() and apply the Equality, Sort, Range (ESR) rule to cut query latency from seconds to milliseconds.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Using pg_repack to Fix Table and Index Bloat in PostgreSQL Without Locking Tables

October 8, 2026
PostgreSQL's MVCC model creates dead tuples over time, causing table and index bloat that slows queries and wastes disk space. This guide covers how to use pg_repack to reclaim that space in production with zero table locks — including installation, usage patterns, and ongoing monitoring.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Scaling PostgreSQL for Time-Series Data with TimescaleDB: A 6-Month Production Review

October 5, 2026
Struggling with slow time-series queries and index bloat in PostgreSQL? Here is how we migrated 1.2 billion IoT records to TimescaleDB, cut write latency from 450ms to 6ms, and reduced disk usage by 87%.
Read More
Database tutorial - IT technology blog
Posted inDatabase

SQL Refactoring: How to Convert Nested Subqueries to CTEs for Better Performance and Readability

September 14, 2026
Deeply nested SQL subqueries are hard to read, debug, and maintain. This guide shows you how to convert them to Common Table Expressions (CTEs) step by step, with real before/after examples and performance verification tips for PostgreSQL and MySQL.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Beyond OFFSET: Why Cursor-Based Pagination is the Only Way to Scale APIs

July 21, 2026
Is your API slowing down as your database grows? Discover why OFFSET is a performance killer and how to implement O(1) cursor-based pagination for massive datasets.
Read More
AI tutorial - IT technology blog
Posted inAI

AI-Driven SQL Optimization: Using LLMs to Decode Execution Plans

July 14, 2026
Learn how to automate SQL tuning by feeding PostgreSQL Execution Plans into LLMs. This guide shows you how to reduce query costs by 85% and prevent production bottlenecks.
Read More
Database tutorial - IT technology blog
Posted inDatabase

PostgreSQL as a Graph Database: 6 Months with Apache AGE

June 13, 2026
Ditch the complex recursive CTEs. Discover how to use Apache AGE to run openCypher graph queries directly inside your PostgreSQL database for better performance and cleaner code.
Read More
Database tutorial - IT technology blog
Posted inDatabase

PostgreSQL Performance Analysis with pg_stat_statements: Find and Fix Slow Queries

May 25, 2026
pg_stat_statements is a built-in PostgreSQL extension that tracks aggregated execution statistics for every query — total time, call count, cache hit rate, and more. This guide walks through enabling it, querying the data to find your worst bottlenecks, and turning those stats into concrete index and query optimizations for production.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Stop Over-Engineering: High-Performance PostgreSQL Search without Elasticsearch

April 20, 2026
Is Elasticsearch overkill for your app? Learn how we achieved sub-100ms search on 1.2M rows using PostgreSQL's native GIN indexes and tsvector.
Read More

Posts pagination

1 2 Next page
Copyright 2026 — ITNotes. All rights reserved.
Privacy Policy | Terms of Service | Contact: [email protected] DMCA.com Protection Status
Scroll to Top