-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Specify connexion for db upgrade #18728
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
Specify connexion for db upgrade #18728
Conversation
Hi @AurelienLavorel. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ihor-sviziev |
Hi @engcom-backlog-nazar, From my perspective it shouldn't work because it using only one connection, while we two - each for different db connections. Unfortunately I can't check it on EE right now. |
I tried on a fresh setup (with sales and quote on other db) and I have no errors during upgrade, hope you'll have the same result. |
Hi @AurelienLavorel, I see that issue related to different connections for different DBs, each connection don't have access to another DBs, only to own. For sure it will be slower that implementation from #16570 for single-db installations, but it will be working solution for multi-db installations |
I can add a check if Magento_ScalableCheckout, Magento_ScalableInventory, or Magento_ScalableOms is enabled, we use old code version (with Magento collection) instead of the SQL query. Can you accept it? |
But it will be failing with big amount of quotes / orders data |
Working with batches and doing some cleanup after each iteration helps a lot. It still works slow though. Also I see a lot of order addresses not being updated. Probably be due to quote cleanup in EE. |
Hi @AurelienLavorel,
I think yes, it will fix this issue and at least people without split DBs will have performance improvement. Please update your PR accordingly |
I did that, thank you for your time |
This seems a poor solution as it still blocks large setups with split database to upgrade. I'm working on a solution too. |
Hi @AurelienLavorel, |
Hi @AurelienLavorel, So I'm closing this PR as we have better proposition of fixing the same issue. Thank you for your time! |
if ( | ||
$this->moduleManager->isEnabled('Magento_ScalableCheckout') || | ||
$this->moduleManager->isEnabled('Magento_ScalableInventory') || | ||
$this->moduleManager->isEnabled('Magento_ScalableOms') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, actually we cannot refer to Magento Commerce modules from Magento Open Source ones.
Specify connexion for db upgrade
Description (*)
Compatibility with Magento Commerce split databases setup.
Fixed Issues (if relevant)
Manual testing scenarios (*)
As before
Contribution checklist (*)