Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top