We need to make 2 adjustments which I think were missed.
-
variant.rb
method = create_stock_items
issue = it loops on all stock locations which don't event belong to given vendor
expected = only create stock items for respective vendor's stock location
-
stock_location.rb
method = create_stock_items
issue = it loops on all variants of all vendor's.
expected = only create stock item for respective vendor variants.
Overrall Impact faced:
i faced serious performance issue as number of vendors and products increased on my platform and I was able to find this as reason.
We need to make 2 adjustments which I think were missed.
variant.rb
method = create_stock_items
issue = it loops on all stock locations which don't event belong to given vendor
expected = only create stock items for respective vendor's stock location
stock_location.rb
method = create_stock_items
issue = it loops on all variants of all vendor's.
expected = only create stock item for respective vendor variants.
Overrall Impact faced:
i faced serious performance issue as number of vendors and products increased on my platform and I was able to find this as reason.