`object_version_info` hangs on objects with huge number of versions

Open
#406 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cloud

Research direction

Start by locating the implementation and callers of object_version_info. Review how it gathers versions, then define the behavior of object_version_iter for objects with very large version counts and verify that object_version_info remains unchanged.

Written by the indexing model from the issue text.

Description

The object_version_info function attempts to return all versions of given object.

This approach turns unusable in cases, where objects have huge number of versions. In our case, we have objects with 28 million of versions (5 years updating the content once a minute).

Python has natural solution for these cases returning an iterable instead of all the values.

Proposed solution:

Keep existing object_version_info as is and implement new method object_version_iter returning iterable.

Dominant language
Python
Stars
1k
Forks
305
Avg merge
22h 37m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fsspec/s3fs

All issues in fsspec/s3fs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.