Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top