It's the first thing, read-then-insert, not blind insert. Also you don't always need to do the read and the insert in the same transaction.