I have two huge tables. I want to update all fields in the second table with the first if productid and userid matches or insert new if not exist. Will a JOIN be better than a simple UPDATE? What about REPLACE INTO? Can someone help me with the best optimal decision? because the tables are huge.
Thanks.