http://www.perlmonks.org?node_id=87493


in reply to How to count rows using DBI & mysql - Performance results

Just a short tip:
The REPLACE function from MYSQL. It checks if the row is existing, and doing an INSERT (if not), or an UPDATE (if it is). However if you do not want the UPDATE feature, it does not help you.

--
tune