odoo/addons/account
Guewen Baconnier 4fe0c6bd60 [IMP] account: updated index to optimize _default_get of account.move.line
A log analysis showed that the normalized query below was executed very often
with a slow explain plan using a seq scan.

```sql

SELECT move_id, date
FROM account_move_line
WHERE journal_id = <journal_id>
AND period_id = <period_id>
AND create_uid = <user_id>
AND state = 'draft'
ORDER BY id DESC LIMIT 0;

```

This query is called in the _default_get of account.move.line to find the last
unbalanced move line.

The existing index can be improved to cover this query as well, showing an
impressive improvement of the explain plan as explained here:
https://github.com/odoo/odoo/pull/7430#issuecomment-119521031

Closes #7430
2015-07-08 13:56:20 +02:00
..
data [FIX] account,account_followup,l10n_{ch,es,pt,us,ve}: correct or remove wrong fields in <record> creation 2013-10-31 19:43:21 +01:00
demo [FIX] account: removal of warnings at database creation due to unknown fields in account.payment.term.line model 2013-03-14 15:53:37 +01:00
edi [FIX] sale: quote character in company name is converted to html entity 2014-08-05 11:15:28 +02:00
i18n [I18N] Update translations from Transifex 2015-05-29 18:28:10 +02:00
process [MERGE] Bugfixes from 6.1 until revision 6900 2012-12-18 03:11:23 +01:00
project [FIX] account: do not duplicate analytic lines on analytic journal duplicate 2014-11-18 16:27:57 +01:00
report [FIX] account: entries analysis with null values in debit/credit 2015-05-06 18:22:16 +02:00
security [FIX] account: add multicompany rule to account.subscription.line 2014-06-25 12:07:02 +02:00
static/src [FIX] account: do not show empty partners in manual reconciliation 2015-04-15 17:10:01 +02:00
test [FIX] analytic: duplication of analytic lines 2015-07-02 16:54:46 +02:00
tests [FIX] account: correct name_search on account to be validated even at negation 2013-12-06 18:00:12 +01:00
wizard [FIX] account: prevent crashes when mixing types in context parameters 2015-05-21 16:08:17 +02:00
__init__.py removed lot of stuff 2012-09-17 17:10:31 +02:00
__openerp__.py [FIX] analytic: duplication of analytic lines 2015-07-02 16:54:46 +02:00
account.py [FIX] account, mail, etc.: uniformize evaluated expressions 2015-05-21 16:07:21 +02:00
account_analytic_line.py [FIX] account: unit arg of on_change_unit_amount can be False 2014-07-31 18:15:41 +02:00
account_assert_test.xml [IMP] Speedup test account_assert_test.xml in account 2014-11-13 17:00:42 +01:00
account_bank.py [FIX] account: restrict bank account post creation for account and journal 2013-06-10 13:04:01 +02:00
account_bank_statement.py [FIX] account: Don't copy many2many when copying statement line 2015-05-11 16:54:30 +02:00
account_bank_view.xml [IMP]Account:applying multi_currency group to currency fields 2012-08-27 18:33:40 +05:30
account_cash_statement.py [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos) 2013-06-07 13:38:29 +02:00
account_end_fy.xml
account_financial_report.py [REF] account: added docstring in few methods of account.financial.report 2013-02-11 13:50:56 +01:00
account_financial_report_data.xml [FIX]account_financial_report_data: fix profit and loss sign, sign should be reverse for P&L journal and children 2013-04-22 16:44:38 +02:00
account_installer.xml [IMP] improved code to set default accounts in l10n_us,l10n_ma and added new currency_id field to set currency based on select coa, fixed installation time error of l10n_ve 2013-09-03 12:37:07 +05:30
account_invoice.py [FIX] account: remove lang from context before move creation 2015-06-26 08:41:10 +02:00
account_invoice_view.xml Revert "[FIX] account: remove journal_id from account domains" 2015-04-29 11:06:29 +02:00
account_invoice_workflow.xml [IMP] account: changes related to the cleaning of the invoice workflow 2012-05-25 17:17:40 +02:00
account_menuitem.xml [IMP] Account : changed terms as suggested in account module 2012-12-19 12:26:45 +05:30
account_move_line.py [IMP] account: updated index to optimize _default_get of account.move.line 2015-07-08 13:56:20 +02:00
account_pre_install.yml [FIX] account: added check if country has a code 2015-03-16 10:35:01 +01:00
account_report.xml [IMP] account: (over)due payments report 2014-11-05 15:49:15 +01:00
account_unit_test.xml [IMP]: (Work in progress)* Changed demo references according to changes in server, Aim is to add more common names and easy demo. 2012-06-19 12:46:24 +05:30
account_view.xml Revert "[FIX] account: remove journal_id from account domains" 2015-04-29 11:06:29 +02:00
board_account_view.xml [FIX] removed buggy dashboard on treasury 2012-09-17 18:49:39 +02:00
company.py [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00
company_view.xml [IMP] account, account_voucher: moved some fields from res.company to accounting settings + removed duplicated fields (in company form view AND accounting settings) 2012-10-15 15:50:27 +02:00
installer.py [FIX] account: Chart Installer: new way to get apps server 2013-07-18 14:35:26 +02:00
ir_sequence.py [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00
ir_sequence_view.xml [IMP]Remove type field from the whole account 2012-08-08 16:29:07 +05:30
partner.py [FIX] account: move translatable tag 2014-06-11 14:53:59 +02:00
partner_view.xml [FIX] res.partner: Hide commercial-related fields on contacts form + autosync them from parent company 2013-04-08 01:50:13 +02:00
product.py [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00
product_view.xml [FIX]account : account invoice balance is double the total 2013-05-31 11:59:46 +05:30
res_config.py [FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security 2013-11-29 16:47:14 +01:00
res_config_view.xml [FIX] account: default tax can be of type 'all' 2015-05-28 15:07:29 +02:00
res_currency.py [IMP] use the openerp namespace. 2012-12-06 15:56:32 +01:00