Skip to content

docstore/memdocstore: execution order of OrderBy and Limit #2977

@addie9000

Description

@addie9000

In memdocstore, OrderBy is executed after Limit. Is this intended befavior?

For example, there is a data set which is 'a' to 'z' as field 'id'. (Created from 'a' to 'z'.)
If execute query below, it returns 'x', 'y', 'z'. But it should be 'a', 'b', 'c'.
coll.Where("id", ">", "").OrderBy("id", docstore.Ascending).Limit(3)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions