When developing your indexing strategy you should have a deep understanding of your application’s queries. Before you build indexes, map out the types of queries
you will run so that you can build indexes that reference those fields.
for example you have a query just find based on one field like name
so you can indexing name
in field level
but if you have a query that find based on name
and tag
so you should indexing name
and tag
together for this situation you should use indexing in schema level
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…