Merge lp:~therp-nl/openobject-server/ronald@therp.nl_fix_ir_ui_view_arch_lp925840-6.1 into lp:openobject-server
Proposed by
Ronald Portier (Therp)
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Olivier Dony (Odoo) | ||||
Proposed branch: | lp:~therp-nl/openobject-server/ronald@therp.nl_fix_ir_ui_view_arch_lp925840-6.1 | ||||
Merge into: | lp:openobject-server | ||||
Diff against target: |
71 lines (+47/-1) 1 file modified
openerp/addons/base/ir/ir_ui_view.py (+47/-1) |
||||
To merge this branch: | bzr merge lp:~therp-nl/openobject-server/ronald@therp.nl_fix_ir_ui_view_arch_lp925840-6.1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphael Collet (OpenERP) (community) | Disapprove | ||
Review via email: mp+91579@code.launchpad.net |
Description of the change
Fix problems caused by excessive whitespace in arch field of ir_ui_view.
As a bonus the arch view will be much more compact. Check in psql with:
# select sum(length(arch)) as sum from ir_ui_view;
Before fix: 199.472
After fix: 118.180
This is bound to have a very positive influence on performance.
To post a comment you must log in.
Unmerged revisions
- 4000. By Ronald Portier (Therp)
-
[FIX] Prevent errors caused by trailing whitespace in arch field. As a bonus, stored field will be much more compact.
Stripping all whitespaces in views is inadequate. It is common to edit a view with the views form. There, you want to keep the indentation of the XML in the field 'arch'.
Note that the impact of reducing the size of views on performance is negligible. (The number of queries sent to the DBMS has much more impact than the size of the results.)