Module Catalogue

18 modules available

Databases

MySQL Replication Status Check

Script to check MySQL/MariaDB replication lag and alert if it exceeds threshold.

sql · Intermediate · Sep 2026
Databases

DB Connection Pool Monitor

Query to check active connections, idle connections and pool usage in PostgreSQL.

sql · Intermediate · Sep 2026
Databases New

Cursor-based Pagination Query

Implement cursor-based (keyset) pagination in SQL — faster than OFFSET for large tables.

sql · Intermediate · Aug 2026
Databases

Deadlock Detection and Prevention

Query Postgres lock waiters and identify deadlock candidates before they occur.

sql · Advanced · Jul 2026
Databases

MongoDB Aggregation Pipeline

Count, group and sort documents using PyMongo aggregation pipeline.

python · Intermediate · May 2026
Databases

Row-Level Security in Postgres

Enable RLS on a table so users can only read their own rows.

sql · Intermediate · Apr 2026
Databases

Redis Memory Usage Report

Report the top 20 Redis keys by memory usage using MEMORY USAGE command.

bash · Intermediate · Feb 2026
Databases

Postgres JSON Querying

Extract, filter and aggregate data stored in JSONB columns.

sql · Beginner · Feb 2026
Databases

Redis Pub/Sub Listener

Subscribe to a Redis channel and dispatch messages to registered handlers.

python · Advanced · Jan 2026
Databases

Rolling 30-day Aggregate View

Materialized view of daily module views for the last 30 days, refreshed hourly.

sql · Intermediate · Jan 2026
Databases

SQLAlchemy Bulk Insert with Chunks

Insert thousands of rows efficiently using bulk_insert_mappings in chunks.

python · Intermediate · Jan 2026
Databases

PostgreSQL UPSERT Pattern

Insert or update a row atomically with ON CONFLICT DO UPDATE — no race conditions.

sql · Advanced · Jan 2026
Databases

PostgreSQL Partitioning by Range

Range-partition a large table by month for query performance and easy archival.

sql · Advanced · Mar 2025
Databases

Alembic Migration Boilerplate

Alembic migration file with upgrade and downgrade steps and proper op helpers.

python · Intermediate · Mar 2025
Databases

Common Table Expression Patterns

Practical CTE examples: recursive hierarchy, deduplication, and windowed aggregates.

sql · Beginner · Mar 2025
← Prev 1 2 Next →

Page 1 of 2