When performing a dynamic query, RavenDB will typically create a temp index.
Retrieving document by its Id doesn’t trigger this behaviour:
var entity = documentSession.Query<Entity>().Single(x => x.Id == 1);
Does RavenDB have a built-in optimisation for this type of query?
Arnold,
No, it does not optimize this behavior.