User:Jeropbrenda/Sandbox/Batchcomplete

BatchComplete
When you make an API request using a generator together with properties, the API result may signal to continue because there are more properties to retrieve for the pages so far, or because there are more pages from the generator, or both. From version 1.25 onwards, the API returns a batchcomplete element to indicate that all data for the current "batch" of pages has been returned. This can be useful to avoid building a combined result set for thousands of pages when using a generator together with prop modules that may themselves need continuation.

Example
From the response, only 3 pages that link to "TALKPAGENAMEE" have been returned, but if you run

you will see that there are 6 pages that link to TALKPAGENAMEE, hence there is no "batchcomplete" because there's more data to be returned in this batch. The next continuation will return more links until eventually all the links and all the backlinks for all of the 10 pages would be output, at which point "batchcomplete" is set to indicate that it's safe for the client to process these 10 pages without worrying that a future continuation will return additional data for any these pages. The continuation from the response with "batchcomplete" will begin returning data for the next set of 10 pages from the generator.