Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PERF] account_invoice_change_currency: Slow query from domain #469

Closed
moylop260 opened this issue Dec 21, 2018 · 1 comment · Fixed by #470
Closed

[PERF] account_invoice_change_currency: Slow query from domain #469

moylop260 opened this issue Dec 21, 2018 · 1 comment · Fixed by #470

Comments

@moylop260
Copy link
Contributor

moylop260 commented Dec 21, 2018

The following line of code:

Run the following sql query:

  • SELECT mail_message.id FROM mail_message WHERE (mail_message.subtype_id != 58) ORDER BY mail_message.id DESC;

This is so slow (2s) because the result is too big if you have too many records.
After that will process the result of all ids fetched for a second query, then it is so slow.

@hugho-ad
Could you help us, please?

hugho-ad added a commit to vauxoo-dev/account-invoicing that referenced this issue Dec 24, 2018
id, instead search them by messages ids then filter them
fix OCA#469
@hugho-ad
Copy link
Contributor

@moylop260
FYI
#470

hugho-ad added a commit to vauxoo-dev/account-invoicing that referenced this issue Jan 7, 2019
id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
moylop260 pushed a commit that referenced this issue Jan 7, 2019
#470)

id, instead search them by messages ids then filter them
fix #469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
hugho-ad added a commit to vauxoo-dev/account-invoicing that referenced this issue Jan 11, 2019
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
hugho-ad added a commit to vauxoo-dev/account-invoicing that referenced this issue Jan 11, 2019
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
TDu pushed a commit to TDu/account-invoicing that referenced this issue Jun 20, 2019
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
Saran440 pushed a commit to ecosoft-odoo/account-invoicing that referenced this issue Aug 25, 2020
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Feb 1, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Feb 1, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Feb 2, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Feb 24, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Mar 8, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Mar 9, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Mar 22, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Mar 31, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Mar 31, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Apr 1, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
Saran440 pushed a commit to ecosoft-odoo/account-invoicing that referenced this issue Apr 4, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Apr 6, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Apr 18, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue Apr 22, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue May 3, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue May 6, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue May 13, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
rolandojduartem pushed a commit to vauxoo-dev/account-invoicing that referenced this issue May 17, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
ljsalvatierra-factorlibre pushed a commit to factorlibre/account-invoicing that referenced this issue Oct 11, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
ljsalvatierra-factorlibre pushed a commit to factorlibre/account-invoicing that referenced this issue Dec 22, 2022
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
ljsalvatierra-factorlibre pushed a commit to factorlibre/account-invoicing that referenced this issue May 26, 2023
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants