Everything you need to know about pagination
To make sure we’re on the same page, let’s start by looking at pagination.
What is pagination?
Have you ever clicked through an image gallery? Or read through an extensive web tutorial broken up into multiple segments? Do you know the numbers on the bottom of the gallery or webpage?
Sitechecker.pro, a technical SEO website, defines pagination as “an ordinal numbering of pages, which is usually located at the top or bottom of the site pages.”
Data transfer pagination just applies that principle to the realm of data transfer protocols like API.
Batch Count is the "page size" or "number of records per page" in our request for product data
API queries to dense databases could potentially return millions, if not billions, of results. There’s no telling what kind of drain that could put on your API server. Pagination thus helps to limit the number of results to help keep network traffic in check.
Primary Source Settings
You will find an option for Batch Count on mostly all of our import source types. This option refers to the number of records per page or page size of the download request when we import product data.
Whether you are using GoDataFeed XML or we are importing your products via API from Shopify, BigCommerce, WooCommerce, Magento, and so on, you have the option to control the Batch Count or the number of records per page.
Default Batch Count
When nothing is selected from the dropdown, then we default to 100 or another amount for different sources.
Import time is affected by batch count
The Batch Count is used during the download to control the page size of our request. For smaller servers, this option allows us to keep our requests smaller although this may extend the total time to complete a full import.
Reduce batch count for smaller servers or high-traffic times
"The remote server returned an error: (500) Internal Server Error."
Adjusting Batch Count
To modify the batch count
- Navigate to Import > Primary Source
- Select the Batch Count drop-down
- Choose the batch count size
- Save your changes
- Click Import to start a new import