[MNT-12240] Loading of available Tags is slow at 'Edit Properties' -> 'Select Tags' dialog. Created: 22-Aug-14  Updated: 07-Oct-19  Resolved: 08-Oct-15

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Tags and Categories
Affects Version/s: 4.2.2.8, 4.2.4, 5.0.1
Fix Version/s: 4.2.4.16

Type: Hot Fix Request
Reporter: Nebil Kisa Assignee: Closed Bugs (Inactive)
Resolution: Fixed Votes: 2
Labels: ENHCleanup, performance
Remaining Estimate: 0 minutes
Time Spent: 4 days, 5 hours
Original Estimate: Not Specified
Environment:

Server: Alfresco v4.2.2.8 on Ubuntu 12.04 with 4 CPUs and 16 GB RAM
Client: MacBook Pro OS X 10.8.5 and FF 31


Attachments: JPEG File Alfresco_»_Document_Library_and_Alfresco_»_Admin_Console.jpg     Text File MNT-12240.patch     PNG File diff.png     File pickerchildren.get.js    
Issue Links:
Cloners
is cloned by MNT-15335 CLONE - 5.0.2: Loading of available T... Closed
is cloned by MNT-15783 CLONE - Loading of available Tags is ... Closed
is cloned by MNT-15793 CLONE - Loading of available Tags is ... Closed
Related
is related to by MNT-16308 Loading of available Tags is slow at ... Closed
Bug Priority:
Category 1
Hot Fix Version: 4.2.4.16
ACT Numbers:

00175718, 00440108, 00487408, 00483807

Build Location: https://releases.alfresco.com/Enterprise-4.2/4.2.4/PATCH-4.2.4.16/build-00154

 Description   

Description]:
If a descent amount of tages (2000+) have been created then it takes awhile at 'Select Tags' dialog to
load all tags.

[Steps to reproduce]:
1.) Set up a Alf v4.2.2 instance
2.) Apply the JavaScript Console AMP - used to create about 2000+ tags
3.) Log in as 'admin'
4.) Create site 'Test123'
5.) Browse to JavaScript Console = Admin Tools -> Javascript Console
6.) Select traget space like 'var space = /Sites/test123/documentLibrary'
7.) Execute following code:

var myfolder = companyhome.createFolder("New Test Folder");

for (var i=0;i<100;i++){
  var thisdocument = myfolder.createFile("testC " + i + ".txt");
  thisdocument.properties.content.guessMimetype("tag_test" + i + ".txt");
  thisdocument.content="test1234567890";
  for (var y=0;y<20;y++){
  
  thisdocument.addTag("myTagC" + i + y);
  }
  thisdocument.save();
  logger.log("Document number " + i + " was created");
}

8.) Go to documentsLibrary of site 'Test123' and click on 'Edit Properties' of a random document.
9.) Click 'Select' in the 'Tags' section
10.) Measure the time it takes to load the tags' list
11.) For about 2000 tags it is about 5s for 6000+ tags it is about 11s

[Expected Behaviour]:
The behaviour is understandable, but is there any chance to improve the performance.

[Observed Behaviour]:
It takes a while to load the tags list.

[Analysis to date]:
1.) Behaviour is reproducible
2.) Pagination at the particular might help to shorten the load time


Generated at Fri Dec 04 05:50:50 GMT 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.