Skip to content

Querying FileRepository for files is unreasonably slow #57

@mih

Description

@mih

Here is what I do in a nutshell

omcore.File.list(fq.client, file_repository=dvr, limit=1, from_index=0)

this takes 20+ seconds, getting a single file record, reliably (median 25s). For comparison, querying for all dataset versions of a particular dataset takes less than a second over the same connection.

Within the ranges a tested the value of limit has no impact on the latency. Even when moving from_index to a value larger than the number of files in the repository (to get an empty result list), it takes the same time.

Is there a faster way to get a file listing? Maybe some kind of iterator?

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