Skip to content

[idea] Configure Mongo maxTimeMS on a per-query basis? #3707

@yuzeh

Description

@yuzeh

For a parse-server talking to Mongo, we can set maxTimeMS for all queries, and it is applied on all queries.

I've come across a situation where I would like to set maxTimeMS differently depending on the query. For example, queries that end up serving data to end-users likely want a lower timeout than ETL jobs.

Is there value in adding this to the ParseQuery interface? If not, what would you recommend as an alternative? (For example, being able cancel a Mongo query through the Promise returned by ParseQuery.find also works for me.)

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