Skip to content

Parse always includes "_rperm" in the Query #2682

@benishak

Description

@benishak

Env

Parse Server 2.2.17

Problem

I don't know if this is an issue or not but after I enable Profiling (level 1) on MongoDB to check slow queries, I saw that alomost all queries are including _rperm

'queryMask': '{"$query":{"_rperm":{"$in":[]},"approved":"<val>"}}',

Although this class is public read, and the _rperm is being passed empty (by Parse Server? by SDK ?),
The same result can be obtained by

'queryMask': '{"$query":{"approved":"<val>"}}',

and in the SDK (here iOS) we don't pass any ACL argument to the query, and the queried class is public read

- why is this an issue?
because this would make the obvious {"approved": 1} index like this completely useless and must create this index {"approved": 1, "_rperm": 1} instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions