> For the complete documentation index, see [llms.txt](https://docs.nosto.com/magento-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nosto.com/magento-2/addons/cmp/guides/overriding-or-extending-functionalities/customize-page-size-limit.md).

# Customize Page Size Limit

The CM module makes use of the default page size used in the storefront. There might be cases when the page size value might be incorrect. You can state the page size used by our module.

### Use cases

There are 3 use cases:

1. When MySQL is configured as the search engine.
2. When ES is configured as the search engine
3. When the merchant is using M2 graphql to fetch the catalog page

### Setting custom page size value

1. Open the file `app/code/My/Nosto/etc/di.xml`
2. Override the pageSize argument for web handler `Nosto\Cmp\Plugin\Framework\Search\Request\WebHandler` or GraphQL handler `Nosto\Cmp\Plugin\Framework\Search\Request\GraphQlHandler`

```markup
    <type name="Nosto\Cmp\Plugin\Framework\Search\Request\WebHandler">
        <arguments>
            <argument name="pageSize" xsi:type="number">64</argument>
        </arguments>
    </type>
    <type name="Nosto\Cmp\Plugin\Framework\Search\Request\GraphQlHandler">
        <arguments>
            <argument name="pageSize" xsi:type="number">64</argument>
        </arguments>
    </type>
```

### Compiling your changes

In order to compile your changes you'll need to run the `di:compile` command

```markup
bin/magento setup:di:compile
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nosto.com/magento-2/addons/cmp/guides/overriding-or-extending-functionalities/customize-page-size-limit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
