[Koha-bugs] [Bug 24027] Adding multiple items is slow

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 31 22:22:33 CET 2020


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

Michal Denar <black23 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #95663|0                           |1
        is obsolete|                            |

--- Comment #15 from Michal Denar <black23 at gmail.com> ---
Created attachment 98251
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98251&action=edit
Bug 24027: (follow-up) Don't combine multiple items add POST page with list
generation

When hundreds or thousands of items added, it takes time to add to DB.
Then generation of items list in the SAME request also takes time.
This "doubles" page generation time.

This patch proposes to show only the number of added and total items on
POST-generated page instead of list generation, but not always:
only if some limit are reached ("OpacMaxItemsToDisplay" // 50 is used),
and propose navigation link for the user to see the list after.

It's much more sensible on big databases and libraries hosting/clouds
with limited resources even up to page generation timeout.

This stacks up with previous patch for the combined speed up effect.

Other improvements with this patch:

because added counters for both:
- added now items,
- overall items for this biblioid in DB,
it is now shows:
- number of added items after adding in "dialog message" style box,
- number of total displayed items on the beginning of the list table.

Signed-off-by: Michal Denar <black23 at gmail.com>

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


More information about the Koha-bugs mailing list