summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-06-09 03:05:49 +0200
committerOlivier Dony <odo@openerp.com>2012-06-09 03:05:49 +0200
commit6da2d94357e83c77cd702397d916384db98cc9eb (patch)
treeb5995783026c6de2176085ed106d3373a84c76d3 /addons/plugin/plugin_handler.py
parentfe39e36f355f887d53c59faef40f63dd3e3686d4 (diff)
[FIX] read_group: remove prohibitive n^2 operations, could freeze the server on large group_by results
This patch replaces two O(n^2) operations, one filter and one sort, with O(n) or better operations. It takes slightly more memory due to the use of one extra data copy, but takes virtually no time to process even with 600k result lines, whereas the previous code would just freeze the server for a long time. bzr revid: odo@openerp.com-20120609010549-xdktw6xte7fmxjbq
Diffstat (limited to 'addons/plugin/plugin_handler.py')
0 files changed, 0 insertions, 0 deletions