2025-08-19
Deployment
HA/DR


Infra Deployment
Terraform vs Pulumi
- Desired State Configurate
- Code-State File-Infra
- Apply
Tech stack
DB Deployment
Prisma vs EF
- Code First
- DSC
- Code-Migrations-DB
- Apply
Issues
-
table/column rename
-
Column order
Code First vs DB First
GitLab converts the existing Ruby schema from schema.rb to structure.sql
Optimization
Fine-tuning
- Identity
- Explain
- Interpret and analysis
- estimated vs acutal rows
- most expensive cost
- Tuning and verify

Stats
- Table Stats
- Column Stats
- Data distribution
- Correlation with physical ordering
- Correlation between columns
- System Stats
- Seq_page_cost/Random_page_cost = 1/4
- Scattered Read/Sequential Read = ((10ms+8*2ms)/8) / (10ms+2ms) = 0.27 Jonathan Lewis
Bind value type
Bind variables
DB time model/Wait event

- Snapshot
- Acitve Session History
- Query Plan Managment
- Upgrade/AB test/SaaS rollout
- Optimal vs Stability
Long compilation time issue
Monitor
- Performance Insights
- Cloudwatch
- APM
Cloud-native RDS

Data Engineer
