Вопрос

After opening a tailable cursor (AwaitData | NoCursorTimeout | TailableCursor), calling MoveNext() on blocks for a very short interval (it seems less that 1000ms). The purpose of AwaitData is to tell the server to wait a while for new data if it has reached the end of data, which it seems to be doing, but can that wait time be configured or is there documentation on how long it currently waits?

Это было полезно?

Решение

No, it is not configurable. The wait time is anywhere between 2 and 2.3 seconds.

You are not the only one who finds it to be a peculiar design decision.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top