PaginationSize

Version 1.1.0+

Ensures that objects are paginated with performant sizes so that too many objects aren't loaded at once. This helps to keep response times low.

Examples

The following examples contain code snippets that either fail or pass this check.

✗ Fail

The following example includes a pagination size that leads to too many products on a single page, exceeding the max_size value:

✓ Pass

The following example includes a pagination size that will not negatively impact performance:

Options

Parameter Description
enabled Whether this check is enabled.
min_size The minimum valid pagination size.
max_size The maximum valid pagination size.

Disabling this check

This check is safe to disable.