Closed
Description
Issue Description
After creating a new BDB backend, we autotune the cache only when restarting. So, an administrator will try to import an LDIF before that; she will have a very slow import. The workaround is very simple - restart after the new backend is created.
So we either need to:
- modify the CLI (or the core backend creation code)
OR at least
- modify our CI tests so they restart the instance after the backend is created but before the restore/ldif2db.
Steps to Reproduce Slow Import
Steps to reproduce the behaviour:
- Install an instance
- Create a new backend
- Stop the instance
- Run ldif2db on the new backend - It's very slow.
- Start the instance
Steps to Reproduce Fast Import
Steps to reproduce the behaviour:
- Install an instance
- Create a new backend
- Restart the instance (Autotuning is performed)
- Stop the instance
- Run ldif2db on the new backend - It's fast enough.
- Start the instance