# How the streaming optimization technique works

You can customize the amount of the records used for processing by specifying a maximum limit for time or rows in the window mode. You can optimize data service processing by specifying a **Rows Limit** (the maximum number of rows that a window can have). If the value in the **Rows Limit** is reached, a new window is created. You can also optimize data service processing by specifying a **Time Limit** (the maximum elapsed time to create a new window).


---

# Agent Instructions: 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.pentaho.com/pdia-data-integration/archived-merged-pages/pentaho-data-services-archive/optimize-a-pentaho-data-service/apply-streaming-optimization/how-the-streaming-optimization-technique-works.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.
