summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2014-08-11 11:11:03 +0200
committerOlivier Dony <odo@openerp.com>2014-08-11 11:34:12 +0200
commitf28be81bc7c7fef3cfb57941de57bc05f767933e (patch)
treeeed7233d1c4d36ee15fdfd92c655df539f2c5369 /addons/analytic_user_function/analytic_user_function_view.xml
parent765beaa0c946d0ad3133a23859bc471afade110f (diff)
[IMP] models._auto_init: avoid writing `False` default for boolean fields
Boolean fields always default to False in 8.0, even when they do not have explicit default values. This causes extra queries in the form: UPDATE <table> SET <bool_field> = false WHERE <bool_field> IS NULL; Those are not necessary as the ORM automatically folds NULL booleans to False, and can be very expensive on tables with several million rows, as the whole table may sometimes need to be rewritten (can take dozens of minutes)
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions