As the first step, the iterator determines the data range which will be used as condition in the iteration database queries. The data range is
determined using `MIN(column)` and `MAX(column)` aggregations. For some database tables this strategy causes inefficient database queries (full table scan). One example would be partitioned database tables.
Example query:
```sql
SELECTMIN(id)ASmin,MAX(id)ASmaxFROMevents;
```
Alternatively a different min-max strategy can be used which uses `ORDER BY + LIMIT` for determining the data range.