Frage

During an update, if the part of index that needs to be updated is not in memory, will MongoDB yields the write lock during the index page fault?

The documentation mentions about yield on page faults. Does it apply to page faults in index too or only documents?

War es hilfreich?

Lösung

Unfortunately this does not happen for indexes during an update, aside from what the query may use to get to the document. Currently it only happens for the document(s) being updated.

There is a feature request for this, so feel free to watch and vote for SERVER-13325

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top