INSERT INTO cscart_product_popularity (
  `viewed`, `added`, `deleted`, `bought`, 
  `total`, `product_id`
) 
VALUES 
  (0, 1, 0, 0, 5, 265242) ON DUPLICATE KEY 
UPDATE 
  viewed = viewed + 0, 
  added = added + 1, 
  deleted = deleted + 0, 
  bought = bought + 0, 
  total = total + 5

Query time 0.00054

Result

int(2)