pgadmin4/web
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
..
migrations 1. Added Master Password to increase the security of saved passwords. Fixes #4184 2019-05-28 12:00:18 +05:30
pgadmin Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570 2019-08-06 14:02:57 +01:00
regression 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
.editorconfig Add an editorconfig file to help maintain coding standards. 2017-07-21 09:39:23 +01:00
.eslintignore Ignore the ycache directory when linting. 2018-05-31 10:34:29 -04:00
.eslintrc.js Added recommended ESLinter checks. Fixes #4142 2019-04-05 13:07:43 +05:30
babel.cfg Fix translation extraction for new client side translations, and update catalogs. 2017-03-28 15:21:49 -04:00
config.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
karma.conf.js Remove the large and unnecessary dependency on React and 87 other related libraries. Fixes #4018 2019-03-07 10:51:59 +00:00
package.json Add various make targets for auditing the Python and JS modules. Update the install-node target so that it de-dupes JS modules. 2019-08-02 14:05:09 +01:00
pgAdmin4.py Fix an issue with stdout redirection on Windows, and remove code added in a failed attempt to resolve a Windows regression test issue. 2019-03-19 15:55:34 +00:00
pgAdmin4.wsgi Update copyright notices for 2019 2019-01-02 15:54:12 +05:30
setup.py Don't try to set permissions on Windows. It won't work anyway. Fixes #4276 2019-05-20 13:53:08 +01:00
webpack.config.js Ensure popper.js is installed when needed. Fixes #4219 2019-04-30 13:57:10 +01:00
webpack.shim.js Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653 2019-05-31 11:51:30 -04:00
webpack.test.config.js Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653 2019-05-31 11:51:30 -04:00
yarn.lock Add various make targets for auditing the Python and JS modules. Update the install-node target so that it de-dupes JS modules. 2019-08-02 14:05:09 +01:00