| WikiListContinuationLoopBehaviors Enumeration |
This is preliminary documentation and is subject to change.
Controls the behavior when
WikiListT detects itself is getting into a loop
due to the continuation parameter set provided by the server has the exact same values
as query parameters.
Namespace: WikiClientLibrary.Generators.PrimitiveAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax [FlagsAttribute]
public enum WikiListContinuationLoopBehaviors
<FlagsAttribute>
Public Enumeration WikiListContinuationLoopBehaviors
Dim instance As WikiListContinuationLoopBehaviors
[FlagsAttribute]
public enum class WikiListContinuationLoopBehaviors
[<FlagsAttribute>]
type WikiListContinuationLoopBehaviors
Members Member name | Value | Description |
---|
None | 0 |
Do nothing. This will cause an UnexpectedDataException to be thrown.
|
FetchMore | 1 |
Tries to fetch more items, so the last item might have a different timestamp, causing the continuation continues.
WikiListT will fetch for 1000 items at most, depending on whether the user has `apihighlimits` right.
If it still cannot get out of the continuation loop, an UnexpectedDataException will be thrown.
|
Remarks
On old MediaWiki builds with
raw query continuation,
if there are too many logs in the same timestamp (seconds precision), such situation can happen. If there are 100 logs sharing
the same timestamp (truncated into seconds), while we only take first 50 of them as the first page,
the continuation parameter set will indicate the next batch starts with the same timestamp as the first item,
eventually causing client to fetch the next batch with the exactly same set of parameters.
See Also