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

Update database calls to newer ORM #30

Open
wernerkrauss opened this issue Jan 16, 2024 · 0 comments
Open

Update database calls to newer ORM #30

wernerkrauss opened this issue Jan 16, 2024 · 0 comments

Comments

@wernerkrauss
Copy link
Contributor

calling "canPublish" with Stock extension causes a lot of old, uncaced DB queries that add a huge load to websites if we have a few abandoned carts in ProductStockExtension::getTotalStockInCarts().

@forsdahl has some more modern code for that method.

In general it'd be good to update this module for more modern and faster ORM and maybe implement some caching mechanism for the current product's stock.

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

No branches or pull requests

1 participant