INSERT INTO cscart_cp_statistics_product_popularity (
  `product_id`, `viewed`, `total`, `timestamp`
) 
VALUES 
  (906, 1, 3, 1733950800) ON DUPLICATE KEY 
UPDATE 
  viewed = viewed + 1, 
  total = total + 3

Query time 0.00084

Result

int(2)