Repository of scripts, that are published in Medium article "On indexes in RDBMS and why NOT use them.".
All scripts are made using Oracle SQL dialect.
SQL-scripts are inside scripts/
folder.
0_7_cleanup.sql
- drop tables, triggers, sequences, i.e. prepare before and clean-up after running it all1_create.sql
- create tables, keys and indexes2_insert_data.sql
- populate data for FOODS and EATERS tables3_queries.sql
- queries, that are being analyzed4_functional_indexes.sql
- functional indexes5_updated_queries.sql
- updated queries, that are faster6_remove_useless_indexes.sql
- couple of statements to remove unused indexes
You'll need Oracle XE 11g+ to run these scripts.