Relational schema design. Normalization vs. denormalization trade-offs.
I design database schemas with proper normalization (3NF+) for relational databases. I analyze access patterns, define key queries, balance consistency vs. performance, and implement proper constraints, foreign keys, and indexes.
Normalized schema for data integrity and consistency.
Denormalization recommendations—computed columns for high-frequency queries.
Proper data type selection—VARCHAR vs TEXT vs JSONB implications.
Constraints & validations—database-level integrity checks.
Migration strategy—safe schema changes with zero downtime.
Understand entities, relationships, and query patterns.
Create ER diagram, define tables, relationships, and constraints.
Add strategic denormalization and computed columns for performance.
Create migration scripts, test on test data, deploy.
When the read:write ratio is high (95%+ reads). Examples: cached counts, cached aggregations.
TEXT for ≤1GB, JSONB for structured nested data, external storage (S3) for >1GB.
Expand (add column), Migrate (fill data), Contract (remove old column). Zero-downtime deployment.
Initiate protocol. Establish connection. Let's build something loud.