-
Notifications
You must be signed in to change notification settings - Fork 5
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
Large database size #75
Comments
This should not been happening, I'll take a look! |
I make a new test.
total record is count the record size use filesize: $ du -sh *
320M data
128M index
8.0K meta
20M dump.db
total record is count the record size use filesize: $ du -sh *
512M data
20M dump.db
20M dump1.db
144M index
8.0K meta
total record is count the record size use filesize: $ du -sh *
1.6G data
20M dump.db
20M dump1.db
15M dump2.db
208M index
8.0K meta
total record is count the record size use filesize: du -sh *
4.0G data
20M dump.db
20M dump1.db
15M dump2.db
2.1M dump3.db
1.2G index
8.0K meta |
Wasn't able to find it yet. But, some remarks:
|
This is my minimal example |
Sorry for the delay, busy times. I've done some experimenting:
Conclusion: Haskey does not optimally allocate pages, to fix this haskey would have to do some cleanup/garbage collecting between operations. |
See haskell-haskey/haskey#75 which recommends to use `insertMany` over `insert`.
I've faced out with this the same issue. |
lmj@Menjun:data$ du -sh * 12G data 5.0M dump.db 22G index 8.0K meta
I use
haskey
on my project https://github.com/Lupino/haskell-periodic/blob/master/periodic-server/src/Periodic/Server/Scheduler.hs#L119When I run three days
haskey
create large file more then30GB
,the real data is
5M
of57028
itemsplease help me how to alloc the file size of
haskey
My schema is:
The text was updated successfully, but these errors were encountered: