INSERT INTO cscart_product_popularity (`product_id`, `viewed`, `total`) 
VALUES 
  (672, 1, 3) ON DUPLICATE KEY 
UPDATE 
  viewed = viewed + 1, 
  total = total + 3

Query time 0.00018

Result

int(2)