
The Trove library
Data & Database Review for AI Agents
You can read the contents and the first 2,000 characters.
Pro includes the whole book.
- By Sahar Carmel
- 21 chapters
- Updated Oct 1, 2026
What’s inside
- Schema Changes & Migrations
- Query Shape & Indexing
- SQL Correctness Antipatterns
- Transactions, Isolation & Locking
- Postgres & Supabase Platform
- ORM & Data-Access Layer
From the first page
This book is a lookup reference, not a narrative. It is for AI agents that review code which stores, moves, transforms or reports data. Do not read it from start to end during a review. Classify the diff, load only the chapters its files call for, and use the Master Decision Matrix (Chapter 2) to jump to rules.
Preview · 2,000 of 495,191 characters
Contents
- 01Data & Database Review for AI Agentsp.1
- 02How to Use This Bookp.2
- Workflowp.2
- Severity Scalep.2
- Chapter Mapp.2
- File-Signal Loading Guidep.2
- Relation to the Parent Bookp.2
- Per-Chapter Structurep.2
- How to Report a Findingp.2
- Source Booksp.2
- 03Master Decision Matrixp.3
- Path 1: Pattern-Based — "I See This in the Code"p.3
- Path 2: Task-Based — "I'm Reviewing a PR That Does X"p.3
- Path 3: Severity-Based — Quick Filterp.3
- Cross-Book Map — Parent Rule to Companion Rulesp.3
- 04Schema Changes & Migrationsp.4
- Red Flag Tablep.4
- Rulesp.4
- Verificationp.4
- Common Mistakesp.4
- 05Query Shape & Indexingp.5
- Red Flag Tablep.5
- Rulesp.5
- Verificationp.5
- Common Mistakesp.5
- 06SQL Correctness Antipatternsp.6
- Red Flag Tablep.6
- Rulesp.6
- Verificationp.6
- Common Mistakesp.6
- 07Transactions, Isolation & Lockingp.7
- Red Flag Tablep.7
- Rulesp.7
- Verificationp.7
- Common Mistakesp.7
- 08Postgres & Supabase Platformp.8
- Red Flag Tablep.8
- Rulesp.8
- Verificationp.8
- Common Mistakesp.8
See all 21 parts
- 09ORM & Data-Access Layerp.9
- Red Flag Tablep.9
- Rulesp.9
- Verificationp.9
- Common Mistakesp.9
- 10Caching & Redisp.10
- Red Flag Tablep.10
- Rulesp.10
- Verificationp.10
- Common Mistakesp.10
- 11Replication, Events & Consistencyp.11
- Red Flag Tablep.11
- Rulesp.11
- Verificationp.11
- Common Mistakesp.11
- 12Batch Pipelines (ETL/ELT)p.12
- Red Flag Tablep.12
- Rulesp.12
- Verificationp.12
- Common Mistakesp.12
- 13dbt & Warehouse Modellingp.13
- Red Flag Tablep.13
- Rulesp.13
- Verificationp.13
- Common Mistakesp.13
- 14Orchestration: Airflow & Dagsterp.14
- Red Flag Tablep.14
- Rulesp.14
- Verificationp.14
- Common Mistakesp.14
- 15Spark & Large-Scale Batchp.15
- Red Flag Tablep.15
- Rulesp.15
- Verificationp.15
- Common Mistakesp.15
- 16Streaming: Kafka & Flinkp.16
- Red Flag Tablep.16
- Rulesp.16
- Verificationp.16
- Common Mistakesp.16
- 17Data Contracts, Quality & Schema Evolutionp.17
- Red Flag Tablep.17
- Rulesp.17
- Verificationp.17
- Common Mistakesp.17
- 18Metrics, Semantic Layer & Governance-in-Codep.18
- Red Flag Tablep.18
- Rulesp.18
- Verificationp.18
- Common Mistakesp.18
- 19Testing Data Codep.19
- Red Flag Tablep.19
- Rulesp.19
- Verificationp.19
- Common Mistakesp.19
- 20Reading Map for Data Engineering at Scalep.20
- 1. Large Companies: What Changes at Scalep.20
- 2. Team Structure: Central Platform, Embedded Teams, or Bothp.20
- 3. Data Mesh Versus a Central Warehousep.20
- 4. Modelling Strategyp.20
- 5. Storage: Warehouse, Lake, Lakehouse and Table Formatsp.20
- 6. Batch Versus Streamingp.20
- 7. Governed Self-Serve Analyticsp.20
- 8. Semantic Layer and Metric Definitionsp.20
- +9 more sections
- 21Appendices: False-Positive Guidance, Severity Overrides & Cheat Sheetp.21
- Section 1: "When NOT to Flag" Addendump.21
- Section 2: Severity Override Matrixp.21
- Section 3: Quick Reference Cheat Sheetp.21
- Section 4: File-Signal Loading Tablep.21
- Section 5: Source Booksp.21




