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 » sql
Database tutorial - IT technology blog
Posted inDatabase

SQL Recursive CTE: Modeling and Querying Hierarchical Data for Category Trees and Role Permissions

November 15, 2026
Recursive CTEs let you traverse hierarchical data in SQL without multiple round trips or application-side loops. This guide walks through the adjacency list model, building a full category tree with breadcrumb paths, and querying inherited role permissions — with copy-paste examples you can run in PostgreSQL or MySQL 8+ today.
Read More
Programming tutorial - IT technology blog
Posted inProgramming

Local Data Analytics with DuckDB and Python: Querying Millions of Rows Without a Database Server

October 31, 2026
Tired of Pandas memory crashes? Learn how to use DuckDB and Python to analyze 50M+ rows directly from Parquet and CSV files in seconds without launching Docker or configuring database servers.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Working with Geospatial GIS Data in PostgreSQL with PostGIS: Storage, Indexing, and Queries

October 28, 2026
Learn how to store and query geospatial GIS data in PostgreSQL using PostGIS. This step-by-step tutorial covers installation, SRID configuration, GiST spatial indexing, and sub-3ms radius searches.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Mastering PostgreSQL Materialized Views: Accelerate Analytical Queries and Refresh Concurrently Without Table Locks

October 27, 2026
Learn how PostgreSQL materialized views transform slow analytical aggregations into millisecond lookups. This practical guide walks through indexing strategies, disk space trade-offs, and non-blocking background refreshes using REFRESH CONCURRENTLY.
Read More
Database tutorial - IT technology blog
Posted inDatabase

PostgreSQL Foreign Data Wrapper (postgres_fdw): Query Multiple Clusters Without ETL

October 21, 2026
A battle-tested production review and implementation guide for postgres_fdw. Discover how to query and join multiple PostgreSQL databases in real time without setting up complex ETL pipelines.
Read More
Database tutorial - IT technology blog
Posted inDatabase

Mastering DuckDB: The Fast In-Process OLAP Database for Serverless Analytics

October 7, 2026
Analyze large CSV and Parquet files instantly without spinning up database servers. This tutorial demonstrates how DuckDB provides serverless, in-process OLAP performance for fast local analytics and cross-source queries.
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

Mastering SQL Window Functions: Real-World Guide to ROW_NUMBER, RANK, LEAD, and LAG

October 4, 2026
Learn how to use SQL window functions like ROW_NUMBER, RANK, LEAD, and LAG to debug real-world production incidents, deduplicate records, and compute running analytics efficiently.
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

Advanced Vietnamese Search in PostgreSQL and MySQL: Collation, Unaccent, and Index Optimization

September 14, 2026
Vietnamese diacritics break naive database search queries. Here's how to configure Collation in MySQL and the Unaccent extension in PostgreSQL — plus functional and GIN indexes — so searches work correctly without a performance hit.
Read More

Posts pagination

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