Skip to content

[FIX] website_apps_store: avoid useless postgres requests#96

Open
petrus-v wants to merge 1 commit into
OCA:14.0from
petrus-v:14.0-improve-perf
Open

[FIX] website_apps_store: avoid useless postgres requests#96
petrus-v wants to merge 1 commit into
OCA:14.0from
petrus-v:14.0-improve-perf

Conversation

@petrus-v

Copy link
Copy Markdown

This code were calling super but overwriting most of the result.

So, stop calling super() and reuses lastest odoo version as well which stop calling search_count

This is done while managing performance issue on OCA community instance
cf run 2 on locust report here: OCA/oca-custom#62

this core were calling super but overwriting most of the result. stop calling super
and reuses lastest odoo version as well which stop calling search_count

this is done while managing performance issue on OCA community instance
"product_variant_ids.product_template_attribute_value_ids"
+ ".product_attribute_value_id.id"
)
domain += [

@rousseldenis rousseldenis Aug 29, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Details but:

  • using osv.expression.AND() is better in terms of readability
  • is calling twice post.get(...) enhanced by adding variables ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for review !

Yeah I was just moving code ! you are right, will improve that :)

@thomaspaulb

Copy link
Copy Markdown

/ocabot rebase

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @thomaspaulb you are not allowed to rebase.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@petrus-v

petrus-v commented Oct 3, 2025

Copy link
Copy Markdown
Author

@thomaspaulb I've start to take care @rousseldenis suggestion and orther details during code sprint but haven't pushed yet ! but not sure to be able to do it in the next 15 days...

@thomaspaulb

thomaspaulb commented Oct 3, 2025 via email

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants