Hola!
I'm currently building a site that uses an external database to store all the product details, and an internal database that will act as a cache so that we don't have to keep hitting the external database to retrieve the products every time a customer requests a list.
What I need to do is retrieve all these products from External and insert them into Internal if they don't exist - if they do already exist then I have to update Internal with new prices, number in stock etc.
I was wondering if there was a way to insert / update these products en-mass without looping through and building a new insert / update query for every product - there could be thousands at a time!
Does anyone have any ideas or could you point me in the right direction?
I'm thinking that because I need to check if the products exist in a different data store than the original source, I don't have a choice but to loop through them all.
Cheers,
G.