I am creating a price comparison site that contains about 300,000 products and several hundred customers.
Every day the site needs to update prices and availability of stock suppliers.
When a supplier needs updating, I thought about deleting all the information about the seller, and then pulled and inserted a new one - every time.
By doing this, I donโt need to worry about the supplier uninstalling the product. In a simple way, I got a new dataset every day.
On the other hand, I need to keep the auto-increment counter in check, and it seems like spending everything on removing everything from the seller if he has only updated prices for 3 products in his entire warehouse.
But the update has its drawbacks. I still have to read all the data and compare each price and availability of the product with the supplierโs data, one product at a time. It is also more difficult to notice products that are being removed by the supplier.
How to achieve the most effective and simple update?
source share