In MongoDB profiler I see that we have unindexed collection that causes bad performance.
As you can see here:
I want to avoid this.
What is the syntax for creating indexes for that collection, so this query will be more effective?
(My question is how to add index for ‘Entity.Airports.SearchName’ in C#? ‘Airports’ is a list of objects)