[Koha-bugs] [Bug 27880] Store each database migrations state in database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 4 03:08:13 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27880

--- Comment #13 from David Cook <dcook at prosentient.com.au> ---
I think Koha::Migrations->pending_migrations is actually a significant win for
these patches.

It gets a big hashref of all past migrations, and then it checks in O(1) time
whether a file has already been used. 

So we only have 1 database hit, and we have an efficient check per file.

Of course, the time it takes to check for pending migrations will degrade over
time as the list of migration files grows. But that's a problem that we already
have.

So we'd still have a net win by moving to this mechanism.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list