84af9382e2315964209bb065945b5d9116ddb11a
The combined domain for moderated messages used to trigger a complex database query with two OR conditions on the mail_message table. Unfortunately PostgreSQL seems to be unable to optimize this with indexes, or to detect that one of the conditions is void (included `AND FALSE`). On large mail_message tables, this significantly slows down calls to message_fetch, e.g. 6s instead of ~70ms, while returning the same results. As a workaround, move the logic for generating the moderation domain to the server side, where it can be: - optimized out when the user is not a moderator - split into 2 distinct DB queries in order to avoid the pathological case After this change, calls to message_fetch with and without messages to moderate execute in respectively ~50ms and ~150ms, instead of 6s, in a test database with 25 million messages. The modified message_fetch signature is backwards-compatible. + modified mock server used for the tests, which unfortunately duplicates most of the business logic.
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%