Skip to content

pagination sets next query even though there are no more results #5

@rakyll

Description

@rakyll

If the query contains a limit, backend keeps returning MORE_RESULTS_AFTER_LIMIT even though there are none.

var q = ds.query(['Kind']).limit(10);

We make an end cursor comparison to detect where to terminate pagination, but it costs us one extra query that returns an empty list of results.

Metadata

Metadata

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.status: blockedResolving the issue is dependent on other work.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions