The world’s smallest indexing code

time to read 1 min | 77 words

I’m writing a chapter about indexing in RavenDB and I wanted to have the reader grasp the notion of indexing more easily. I came up with the following code that should explain what is going on:

I think that this does a good job of explaining how an index is actually used, at least to the point where even if you don’t understand indexing, you can sort of grasp what is going on behind the scenes.