mudler/luet

Bottleneck on store installed packages on local database

geaaru opened this issue · 0 comments

Luet version:
All version

CPU architecture, OS, and Version:
amd64

Describe the bug
When luet tries to install a lot of packages is more visible the bottleneck on saving packages on Bolt DB.
I added a log that measures the time and it's very high in an SSD disk.

The first patch done tries to open the bolt db only one time instead for every save. This reduces the time but it's yet too high.

geaaru/luet@c444801
(after a period of test i will send a PR to upstream).

This is an example of the reported time on creating Mocaccino Funtoo ISO:

 904 packages added/updated in local db in 257969787 µs.

It's weird. I don't think that is so expensive to write on Bolt db.

I'm trying to see what are the alternative. I'm not sure that it's possible store all packages with only one shot. Maybe the solution is to use the Batch insert?