[ 
https://issues.apache.org/jira/browse/AMBARI-12868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14711317#comment-14711317
 ] 

Hudson commented on AMBARI-12868:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.1 #417 (See 
[https://builds.apache.org/job/Ambari-branch-2.1/417/])
AMBARI-12868. Improve calls to the localStorage (onechiporenko) (onechiporenko: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b8e3988cbb61c19b52d0f743dfedbec542b1b7fc)
* ambari-web/test/controllers/wizard/step7_test.js
* ambari-web/app/routes/create_widget.js
* ambari-web/app/routes/add_kerberos_routes.js
* ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
* ambari-web/test/controllers/main/host/add_controller_test.js
* ambari-web/app/controllers/global/cluster_controller.js
* ambari-web/app/routes/installer.js
* ambari-web/app/controllers/main/host/add_controller.js
* ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
* ambari-web/app/controllers/wizard/step7_controller.js
* ambari-web/app/routes/add_host_routes.js
* ambari-web/app/mixins/wizard/wizardProgressPageController.js
* ambari-web/test/controllers/installer_test.js
* ambari-web/app/controllers/wizard/step8_controller.js
* ambari-web/app/controllers/installer.js
* ambari-web/app/controllers/wizard/step9_controller.js


> Improve calls to the localStorage
> ---------------------------------
>
>                 Key: AMBARI-12868
>                 URL: https://issues.apache.org/jira/browse/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
>
>         Attachments: AMBARI-12868.patch, AMBARI-12868_2.patch
>
>
> methods like {{setDBProperty}} and {{getDBProperty}} work slow, if are used 
> several times one after another. Example:
> {code:javascript}
> var a = this.getDBProperty('a');
> var b = this.getDBProperty('b');
> var c = this.getDBProperty('c');
> {code}
> 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, like:
> {code:javascript}
> this.getDBProperties(['a', 'b', 'c']);
> {code}
> And same for {{setDBProperties}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to