summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-01-27 10:02:14 +0100
committerJoren Van Onder <jov@odoo.com>2016-01-27 11:33:41 +0100
commit7586194e0ca68e7c25b6a1725d368eb8d5c62b3a (patch)
treef95768cf895a07447593834b5618eb5c817f56db /addons/web/static/src/xml/base.xml
parent48639d486f71f1561d6278354829a05a88617130 (diff)
[IMP] account: create an index on account.move.statement_line_id
account.bank.statement.line has a journal_entry_ids field which is a o2m to account.move. During confirmation of bank statements (button_confirm_bank()) this o2m field is heavily used. When a database has a lot of account.move records this lookup starts taking up quite a bit of time. As an example, on a locally duplicated customer database with ~700000 account.move records attempting to resolve journal_entry_ids of an account.bank.statement.line record was observed to take > 1 second. This index improves it to be < 5 milliseconds. This is especially important when big POS sessions have to be closed, because those will contain a lot of account.bank.statement.line records. opw-665309
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions