Skip to content

Occasional slow responses from aind-data-access-api[docdb] via Python #214

@jtyoung84

Description

@jtyoung84

Describe the bug
I have code that runs an "all IDs" query through Python that is occasionally hanging for several minutes before executing. Running the identical query via the REST API as a URL executes immediately. In Python the code is:

     all_records = client.retrieve_docdb_records(
        filter_query={},
        projection={"_id": 1},
        limit=0,
    )

When running normally this returns within a few seconds at most. I would say sporadically, maybe very hour or so today, it's taken ~5 minutes before running. I'm not sure why this would run differently in python vs as a URL.

Additional context
Forwarded this bug report from Teams

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