Would making a document non-nested improve query performance?


(Maxshortzp) #1

I'm working with some legacy code that has nested documents that have 1 field each.

I have profile results that show that a large amount of time is sometimes spent querying the nested field.

If I move to a single analyzed string field (and use position increment gap) I should see substantial performance improvement, right?

I'm mostly looking for information on what (if anything) makes nested queries on single documents more expensive than queries on fields in a flat document.

Possibly related:


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.