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

8.0 [REF] ir.config_parameter: Reduces the number of SQL queries needed to render a typical page. #102

Open
moylop260 opened this issue Jun 6, 2016 · 2 comments

Comments

@moylop260
Copy link

8.0-get_param without cache.
9.0-get_param with cache.

The change was applied in the following commit

Currently we have the following pgbadger result for 8.0 customer app:

- Most frequent queries (N) --------------------------------------------
Rank     Times executed     Total duration     Min/Max/Avg duration (s)     Query
9) 16,417 - 2s561ms - 0ms/2ms/0ms - select "ir_config_parameter".id from "ir_config_parameter" where ("ir_config_parameter"."key" = '') order by "ir_config_parameter"."id";
--
    Example 1: 2ms - database: openerp_test, user: root - SELECT "ir_config_parameter".id FROM "ir_config_parameter" WHERE ("ir_config_parameter"."key" = 'mail.catchall.alias') ORDER BY "ir_config_parameter"."id";
    Example 2: 0ms - database: openerp_test, user: root - SELECT "ir_config_parameter".id FROM "ir_config_parameter" WHERE ("ir_config_parameter"."key" = 'web.base.url') ORDER BY "ir_config_parameter"."id";

This commit should increase the performance of website reducing the number of times executed of this query.

The question is: Should we create a back-port to vauxoo/8.0?

@moylop260
Copy link
Author

@nhomar
What do you think about?

@oscarolar
Copy link

Thats really nice, if it doesn't imply a lot of work this is a +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants