Skip navigation.
Home

archives

How to burn a database in 3 steps...

DB Hoopla

Thanks to Au5lander for sending in this WTF he found on pastebin.com. I'm thinking that this might be some benchmarking code because it'll make the database work so hard!

The code basically goes like this:

  1. If record does not exist, insert data into the first column.
  2. If record exists, update the record with data for the second column
  3. Repeat for each additional column
  4. Watch database burn...