pgadmin4/web/pgadmin/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
..
alertify Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
browser Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
codemirror Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
history Remove the large and unnecessary dependency on React and 87 other related libraries. Fixes #4018 2019-03-07 10:51:59 +00:00
misc/statistics Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
nodes Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
selection 1) Fix an issue where Deleting N number of rows makes first N number of rows disable. Fixes #3605 2019-04-18 12:09:35 +05:30
slickgrid Relabel the Save button on the datagrid text editor to avoid confusion with the actual Save button that updates the database. Fixes #4131 2019-04-02 17:20:43 +01:00
sqleditor 1) Fix an error while retrieving json data from the table. Fixes #4427 2019-07-22 18:42:48 +05:30
tree Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570 2019-08-06 14:02:57 +01:00
alertify.pgadmin.defaults.js Ensure that the Return key can be used to submit the Master Password dialogue. Fixes #4310 2019-06-10 14:03:56 +01:00
backform.pgadmin.js Use the full tab space for CodeMirror instances on dialogues where appropriate. Fixes #4540 2019-08-02 10:25:21 +01:00
backgrid.pgadmin.js Fix accessibility issue for Datetime cell in backgrid. Fixes #4508 2019-07-25 17:54:24 +05:30
check_node_visibility.js Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
csrf.js Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217 2019-05-28 10:59:51 +05:30
dialog_tab_navigator.js Allow keyboard navigation of all controls on subnode grids. Partially fixes #3919 2019-07-11 10:14:01 +01:00
gettext.js Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
keyboard_shortcuts.js Add support for editing of resultsets in the Query Tool, if the data can be identified as updatable. Fixes #1760 2019-07-17 11:45:20 +01:00
modify_animation.js Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
pgadmin.js Added recommended ESLinter checks. Fixes #4142 2019-04-05 13:07:43 +05:30
size_prettify.js Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
sqleditor_utils.js Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
url_for.js Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
utils.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