ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Nechiporenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-12868) Improve calls to the localStorage
Date Tue, 25 Aug 2015 09:25:45 GMT
Oleg Nechiporenko created AMBARI-12868:

             Summary: Improve calls to the localStorage
                 Key: AMBARI-12868
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.1.1
            Reporter: Oleg Nechiporenko
            Assignee: Oleg Nechiporenko
             Fix For: 2.1.2

methods like {{setDBProperty}} and {{getDBProperty}} work slow, if are used several times
one after another. Example:
var a = this.getDBProperty('a');
var b = this.getDBProperty('b');
var c = this.getDBProperty('c');
Each getDBProperty-call does {{localStorage.getObject}} which may be slow if readable object
is too big (it may take 100-150 ms). So, it's better to read list of values with one call,
this.getDBProperties(['a', 'b', 'c']);
And same for {{setDBProperties}}.

This message was sent by Atlassian JIRA

View raw message