Jairo Llopis 33d4223818 [IMP] account_reconciliation_widget: reduce heavy queries count
This specific query is quite expensive, and what's worse, it's also done twice: once to count records and once to get them.

By using a window function, we can get the count and results in one query, thus almost doubling performance in this operation.

Related resources:

- [Explanation](https://stackoverflow.com/a/22353886/1468388).
- [Explain of the 1st SELECT COUNT(*), before the patch](https://explain.dalibo.com/plan/TgL).
- [Explain of the 2nd SELECT, before the patch](https://explain.dalibo.com/plan/Yc9).
- [Explain of the new, unified SELECT, after the patch](https://explain.dalibo.com/plan/9MA).

@Tecnativa TT28595 TT29916 https://github.com/odoo/odoo/pull/73765
2022-01-26 16:33:17 +07:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-11-10 21:16:55 +01:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00
2021-10-17 16:34:02 +02:00

Runbot Status Build Status codecov Translation Status

account-reconcile

TODO: add repo description.

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to OCA policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Description
Odoo account reconciliation modules (statements, data completion...)
Readme 12 MiB
Languages
JavaScript 38.6%
Python 33.9%
HTML 26.5%
SCSS 1%