Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome 单leveldb存储视频过大导致crash #127

Open
maggch97 opened this issue Feb 5, 2024 · 0 comments
Open

chrome 单leveldb存储视频过大导致crash #127

maggch97 opened this issue Feb 5, 2024 · 0 comments

Comments

@maggch97
Copy link
Collaborator

maggch97 commented Feb 5, 2024

观察到:
存储20GB视频,下次写入db的时候,chrome会大量读写磁盘, 内存占用~10G, 然后crash
应该是compact的时候的问题

iOS上每个视频都是单独的一个db

TODO

  1. 能分db吗?好像不太行
  2. 能改表结构,减少compact操作的损耗吗?开头加个时间戳保证写入顺序?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant