Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-12240

Loading of available Tags is slow at 'Edit Properties' -> 'Select Tags' dialog.

    Details

    • Type: Hot Fix Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.2.8, 4.2.4, 5.0.1
    • Fix Version/s: 4.2.4.16
    • Component/s: Tags and Categories
    • 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

      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

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  nkisa Nebil Kisa
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  16 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 4 days, 5 hours
                    4d 5h

                      Structure Helper Panel