Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECSqlReader does not respect the QueryOptions.quota.memory limit on pages returned #6610

Closed
ColinKerr opened this issue Apr 11, 2024 · 0 comments · Fixed by iTwin/imodel-native#741
Assignees
Labels
ecdb ECDb and ECSQL related issues

Comments

@ColinKerr
Copy link
Member

The following code returns data in the default ~8mb pages:

    const reader = iModelConnection.createQueryReader(
      query,
      undefined,
      {
        includeMetaData: true,
        rowFormat: QueryRowFormat.UseECSqlPropertyIndexes,
        quota: {
          memory: 1024,
        },
      }
    );

It should limit the size of the returned page to the size specified in the quota as per the docs:https://www.itwinjs.org/reference/core-common/imodels/queryquota/

If the query reader does not respect this limit the caller has to manually do paging via offset and limit flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecdb ECDb and ECSQL related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants