paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Feature] It may be a memory bottleneck when read all manifests.

Open 5herhom opened this issue 1 year ago • 0 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Motivation

Snapshot.dataManifests() will read all the ManifestFileMeta in memory . If there are too many files in a table ,it may cause oom. And when ManifestFileMeta.merge() to merge the manifests , the merge map is also a memory container , which will case the same problem. I think we can use a spillable container to save manifests .

Solution

No response

Anything else?

No response

Are you willing to submit a PR?

  • [X] I'm willing to submit a PR!

5herhom avatar Apr 10 '24 01:04 5herhom