https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37657 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Created attachment 170490 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170490&action=edit Bug 37657: Make koha-preferences CLI tool faster By using Koha::Database->dbh() to use a minimal database handle which doesn't preload the whole DBIx::Class schema, we're able to run the same command 2-3 times faster. This is beneficial when running the tool in a loop which runs the command serially one by one. Test plan: 1. time misc/admin/koha-preferences get SearchEngine 2. Note time is about 1 second 3. time misc/admin/koha-preferences dump 4. Note time is about 1 second 5. Create sysprefs.yml --- marcflavour: MARC21 viewMARC: 1 6. time misc/admin/koha-preferences load -i sysprefs.yml 7. Apply patch 8. Repeat the koha-preferences commands above 9. Note that the command runs about 2-3 times faster -- You are receiving this mail because: You are watching all bug changes.