n8n/packages
Omar Ajoue 8d235e94cb
Performance improvements for executions count on Postgres (#1888)
* Performance improvements for executions count on Postgres

As reported by a community member https://community.n8n.io/t/stress-load-testing/4846/5
and https://github.com/n8n-io/n8n/issues/1578, when using postgres with
a big volume of executions, the executions list's performance degrades.

This PR is aimed at Postgres specifically by querying postgres' stats
collector instead of running a full table scan, providing a good
estimate.

More can be read here: https://www.citusdata.com/blog/2016/10/12/count-performance/

* Removed order of magnitude so we display closer numbers

* Making count based on statistics only when not applying filters

*  Minor styling improvements

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-07-06 23:25:25 +02:00
..
cli Performance improvements for executions count on Postgres (#1888) 2021-07-06 23:25:25 +02:00
core 🔖 Release n8n-core@0.76.0 2021-07-04 18:13:01 +00:00
editor-ui Performance improvements for executions count on Postgres (#1888) 2021-07-06 23:25:25 +02:00
node-dev 🔖 Release n8n-node-dev@0.16.0 2021-07-04 18:13:16 +00:00
nodes-base 🔖 Release n8n-nodes-base@0.124.0 2021-07-04 18:13:35 +00:00
workflow 🔖 Release n8n-workflow@0.63.0 2021-07-04 18:12:44 +00:00