Skip to content

Query returns all results after hitting limit #623

Closed
@mmiazzo

Description

@mmiazzo

Running a page query returns all results:
Redis config:
FT.CONFIG SET MAXSEARCHRESULTS -1

class TemplateGray(JSONModel):
    idd: str = Field(primary_key=True)
    version: str
    obj_id: str
    gray: pickled

@classmethod
def get_gray_page(cls):
    return TemplateGray.find().page(limit=1000)

print(len(TemplateGray.get_gray_page()))
> 157995

I would expect the length of this to be 1000, not every single record under the schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions