# fetch_data_size · FT4 Rell API · Chromia Docs (concept)

> function fetch_ data_ size(page_ size: integer?): integer Used to calculate the page size for the current query. The value will be: query_max_page_size if 

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/fetch_data_size/

FUNCTION

# fetch\_data\_size

```signature
function fetch_data_size(page_size: integer?): integer
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/utils/pagination.rell#lines-80)

Used to calculate the page size for the current query. The value will be:

* `query_max_page_size` if `page_size` is null or higher than that value
* `page_size` otherwise

**Parameters**

* **page\_size** — the requested size of the page

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.utils/fetch_data_size.html)Generated API reference, mirrored from the live docs
