문제

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