Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

vsbridge_product_indexer mview subscription on cataloginventory_stock_status table non-functional after full reindex #385

Open
hnsr opened this issue Mar 10, 2021 · 0 comments

Comments

@hnsr
Copy link

hnsr commented Mar 10, 2021

When cataloginventory_stock_status is fully reindexed, the table is swapped with a copy for locking/performance reasons. However, due to this, any triggers set on this table are lost. This means the mview subcription for the vsbridge_product_indexer on this table becomes non-functional

Steps to reproduce:

  • Check that cataloginventory_stock_status has triggers (SHOW TRIGGERS LIKE 'cataloginventory_stock_status';)
  • Trigger full reindex of cataloginventory_stock index
  • Check that cataloginventory_stock_status has triggers, they should now be gone

I am unsure what the correct solution is here, maybe subscribing to index tables isn't the best solution here and we should subscribe to the cataloginventory_stock_item table instead, or find a clean way to ensure triggers are recreated

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

No branches or pull requests

1 participant