Bug 16181

Summary: Limit number of tags loaded initially for tag cloud
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: ajgar17374, george, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2016-03-31 20:50:24 UTC
When a patron has an large number of tags (say 3,421) the tag cloud takes an inordinately long time to load.

Maybe we could enforce a limit on initial load and then allow user to load more or paginate through all?
Comment 1 Jonathan Druart 2016-04-04 13:30:34 UTC
Are you talking about opac-tags.pl?
Comment 2 Nick Clemens (kidclamp) 2016-04-04 13:33:03 UTC
(In reply to Jonathan Druart from comment #1)
> Are you talking about opac-tags.pl?
Yes
Comment 3 Jonathan Druart 2016-04-04 14:06:40 UTC
So you are talking about the table, not the tag cloud, that's it?

With 2000 tags the page is generated in 10sec on my laptop, not so bad
Comment 5 Katrin Fischer 2020-01-11 11:15:48 UTC
Nick, is this still something we should work on?
Comment 6 George Williams (NEKLS) 2021-06-09 05:46:39 UTC
This is still relevant.  We have a borrower that has tagged a lot of items.  When they load opac-tags.pl it takes over 4 minutes to load.  #mytagst has over 1000 rows for this borrower so I'm thinking that if #mytagst was converted to datatable, that would solve the problem.  When I load opac-tags.pl for a borrower that only has one or two tags, the tag cloud and the table load quickly.  It's when the borrower has a ton of stuff in #mytagst that the page drags.