pgadmin4/web/pgadmin
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
..
about Update all Python and JS dependencies. Fixes #4019 2019-03-14 15:11:16 +00:00
browser Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570 2019-08-06 14:02:57 +01:00
dashboard 1. Added Master Password to increase the security of saved passwords. Fixes #4184 2019-05-28 12:00:18 +05:30
feature_tests Ensure the query tool will work with older versions of psycopg2 than we officially support, albeit without updateable resultsets. Fixes #4520 2019-08-01 13:59:53 +01:00
help Added recommended ESLinter checks. Fixes #4142 2019-04-05 13:07:43 +05:30
misc Add EXPLAIN options for SETTINGS and SUMMARY. Fixes #4335 2019-07-03 13:57:56 +01:00
model 1. Added Master Password to increase the security of saved passwords. Fixes #4184 2019-05-28 12:00:18 +05:30
preferences Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653 2019-05-31 11:51:30 -04:00
redirects Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
settings Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653 2019-05-31 11:51:30 -04:00
setup Fix typo 2019-07-16 14:36:29 +01:00
static Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570 2019-08-06 14:02:57 +01:00
templates Allow a banner to be displayed on the login and other related pages showing custom text. Fixes #4549 2019-08-01 11:39:40 +01:00
tools Fix some errors thrown on the JS console when dragging text in the Query Tool. Fixes #4552 2019-08-02 11:28:57 +01:00
translations Update Chinese translation. 2019-08-05 08:57:34 +01:00
utils Add a --modules option to the RE-SQL test suite to allow testing of specific object types. Fixes #4560 2019-08-06 13:43:49 +01:00
__init__.py Allow enhanced cookie protection to be disabled for compatibility with dynamically addressed hosting environments. Fixes #4566 2019-08-06 09:21:31 +01:00
messages.pot Update message catalogs. 2019-07-19 17:46:45 +05:30