# cacheBlockSize

Block size for requesting and caching remote rows.

Canonical: https://grid.syidax.com/docs/options/cacheBlockSize/

<a id="meaning"></a>

## What does this API do?

Block size for requesting and caching remote rows.

<a id="contract"></a>

## Exact input and result types

```typescript
cacheBlockSize: number
```

| Item | Value |
| --- | --- |
| JavaScript name | cacheBlockSize |
| HTML attribute | cache-block-size |
| Default | 100 |
| Input type | number |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the cache-block-size attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Request only needed blocks](https://grid.syidax.com/docs/features/infinite-row-model.md) — When downloading every order at once is impractical, request only the ranges needed for scrolling. datasource supplies data based on starting and ending rows and search conditions.
