Highlighted
Absent Member.. WarrenPowers Absent Member..
Absent Member..

Re: Login is very slow

Jump to solution

Hi brav0,

    We did update the SL. Here are the changes:

Starts at line ~319:

  /**
   * To get the contact's info by an operator, additionally, add the label to the contact info.
   */
  function getContactByOperator(operatorName, label, needPortrait){
    //var operator = $('operator').select('tolower(name) = \"' + operatorName.toLowerCase() + '\"').uniqueResult();
    //WWP: Removed lower functions to improve performance
    var operator = $('operator').select('name = \"' + operatorName + '\"').uniqueResult();
    if(operator){
      var contact = getContact(operator.contact_name); // legacy SMC stored this field in xml
      contact.label = label;
      if(needPortrait){
        contact.portrait = getPortrait(operatorName);
      }
      return contact;
    }
    return null;
  }

Starts at line ~491:

  function getPortrait(userName){
    //var operator = $('operator').select('tolower(name) = \"' + userName.toLowerCase() + '\"').uniqueResult();
    //WWP: removed lower functions to improve performance
    var operator = $('operator').select('name = \"' + userName + '\"').uniqueResult();
    if(operator){
      var contact = $('contacts').select('contact.name = \"' + operator.contact_name + '\"').uniqueResult();
      if(!contact){
        return null;
      }
      var attachments = contact.getAttachments();
      for(var index in attachments){
        var attachment = attachments[index];
        if(attachment.name == contact.contact_name && attachment.attachmentType == 'img'){
          return {base64Image: compressImage(attachment.value, 64), mimeType: attachment.type};
        }
      }
    }
    return null;
  }
  

So far the login time after this change is inline with expected duration. The change is currently being tested in lower environments, however we have found no issue thus far. Looks like this worked!

View solution in original post

Established Member.. Brook Qi
Established Member..

Re: Login is very slow

Jump to solution
Hi, this issue is planned in SM 9.52 scope.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.