Skip to content
Monghoul
0:50

From a slow query to its index

The grade is collected for you, and it names the index that fixes it.

Reading results · The grade is collected for you, and it names the index that fixes it

Recorded on Monghoul 2.0.0-rc.1. No sound.

What happens

A find on a nested address field returns a few dozen rows and is graded a collection scan, with every document in the collection examined to find them; the plan names the index that would fix it, the index is created from the plan itself, and the same query re-runs graded optimal at 100% efficiency.