Hard
Detect duplicate database indexes
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Audit pg_indexes.json against index_standards.md. Rule: no two indexes on the same table may share the exact same columns and index_type. If duplicate indexes exist, set status to 'conflict_detected' and put both index_ids in flagged_items. Otherwise keep 'completed'. Return in result: top_bloated_index_id=<index_id of the compliant index with the largest size_mb>.
- Files you work with
pg_indexes.jsonindex_standards.md- Your AI must return
top_bloated_index_id- Level
- Hard. A hard task: several details interact, and a quick skim gives a confident wrong answer.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Manager’s note
Your AI can’t see this
Monday 23/11 update on selecting the largest compliant bloated index. When picking the largest index, leave the temporary staging table out of contention. Someone asked whether to drop the audit events table too; we declined, so keep it in. Still check for duplicate column and type definitions per table.
Rooms with this problem
More Software & IT problems
- Validate webhook URLs against SSRF Hard
- Find command injection in CI workflows Hard
- Check API changes for breaking changes Hard
- Check cron jobs against the off-peak window Hard
- Check JWT verification settings Hard
All Software & IT problems → · Using TraceGrade for Software & IT hiring