Hacker News new | ask | show | jobs
by aljarry 914 days ago
Interesting note on the NOW() (or CURRENT_TIMESTAMP), they are equivalent to transaction_timestamp(), which means - start time of the current transaction.

So, if you'd insert multiple items in a single transaction, all of them would end up with the same value in the "created" column.

2 comments

This caused so many issues in one of our systems. Lesson learnt :)
Thanks, great comment. TIL.