fix: add composite indexes for split-horizon DNS queries#147
Conversation
Adds four indexes to schema.sql for common query patterns: - idx_dns_records_zone_name_type (zone_id, LOWER(name), type) - idx_dns_records_zone_name (zone_id, LOWER(name)) - idx_dns_records_zone_id (zone_id) - idx_dns_zones_tenant_id (tenant_id) Fixes: #71
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
schema.sqlfor common tenant-scoped DNS query patternsidx_dns_records_zone_name_typeon(zone_id, LOWER(name), type)— covers DeleteRecordsByNameAndTypeidx_dns_records_zone_nameon(zone_id, LOWER(name))— covers DeleteRecordsByNameidx_dns_records_zone_idon(zone_id)— covers DeleteRecordsForZone bulk deletesidx_dns_zones_tenant_idon(tenant_id)— covers ListZones tenant isolationFixes: #71