All problems
Hard

Detect duplicate database indexes

Software & IT

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.json index_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

  1. Software & IT Expert 7 Hard