[Koha-bugs] [Bug 32060] Improve performance of Koha::Item->columns_to_str

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 12 15:38:30 CEST 2023


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

--- Comment #17 from David Gustafsson <glasklas at gmail.com> ---
Added caching for GetFrameworkCode and now using that instead. Also saw that
strings_map had the same issues as columns_to_str since they share some code,
so applied the same changes there. Removed get_column and will create another
bug for making columns methods as fast.

Also removed:
my $columns_info = $self->_result->result_source->columns_info;
for my $column ( keys %$columns_info ) {

and replaced by:
for my $column ( @{$self->_columns}) {

in columns_to_str and strings_map. Not much of a difference in terms of speed,
but both confusing and unnecessary to fetch the whole info when you just need
the column names.

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


More information about the Koha-bugs mailing list