pgadmin4/web/pgadmin/browser/static/js
Aditya Toshniwal 6800b1f723 Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570
Attached is a tiny but very effective patch to improve the speed of
finding a node using path (used internally).
If you right click or just click on a node, internally the node is
traversed using its path. But currently, it compares with the path of
all the open nodes to find a match.
So if you 1000+ tables and the tables node is open and if you click on
a view, the view path is compared with all the 1000+ tables (and with
any other open nodes above) before arriving to path. You're at bad luck
if you have more open servers above.

Code is changed to check if the path of node to be found starts with the
current node path. If it doesn't match, why bother the children's of
current node.
This change will not show much effect for small data, but it does matter
for large servers.

One more change is to remove unnecessary calls to find node and use the
data available with Main Menu -> Object to enable/disable node context
menu items.
2019-08-06 14:02:57 +01:00
..
browser.js Allow some objects to be dragged/dropped into the Query Tool to insert their signature into the query text. Fixes #4139 2019-06-27 10:30:05 -04:00
collection.js 1. Added Master Password to increase the security of saved passwords. Fixes #4184 2019-05-28 12:00:18 +05:30
datamodel.js Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
error.js Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
frame.js Many fixes to the stability of the feature tests, including: 2019-03-21 12:04:37 +00:00
keyboard.js Allow keyboard navigation of all controls on subnode grids. Partially fixes #3919 2019-07-11 10:14:01 +01:00
layout.js Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653 2019-05-31 11:51:30 -04:00
menu.js Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570 2019-08-06 14:02:57 +01:00
node.js 1. Added Master Password to increase the security of saved passwords. Fixes #4184 2019-05-28 12:00:18 +05:30
node.ui.js Ensure that newly added row in backgrid should be visible. 2019-04-23 17:32:00 +05:30
panel.js Ensure that element should get highlighted when they get focus on using Tab key. Fixes #4245 2019-05-15 17:42:07 +05:30
preferences.js Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217 2019-05-28 10:59:51 +05:30
toolbar.js Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
wizard.js Fix alignment of Close and Maximize button of Grant Wizard. Fixes #3906 2019-02-13 13:13:07 +05:30