- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
It just baffles me how much of a clueless idiot Peter is (OK, we know that already, but he's even more idiot).
He was having an affair, then shit hits the fan when his wife finds out, and the lover is fired... and then he's all surprised a couple days later, thinking of nasty hackers attacking his online shop instead of plain old revenge? Really, really clueless!
Admin
You don't subpoena expert witnesses. He can't be subpoenaed as an actual witness, as he was not there. He can, however, testify as to his analysis of the system and how that data shows that "Ms Killer Legs" is responsible. But this would be something he could charge the company for.
Admin
Admin
Admin
A major database vendor.
Go and learn about whar a B-Tree index is and how it works and when it's efficient and when it isn't and then come back and pretend to be Mister know-it-all-bigmouth.
Admin
ahahahahhahahahahhahahhahaha
riiiiiiiiiiiiiiiiiiiiight
Admin
Anyways, I think it's funny that people are arguing about soft delete versus archive as if they're not mutually exclusive.
Admin
Twist^2: The CFO/wife and Michelle are BOTH the president's daughters!
Admin
This story could have used less sexism.
Admin
Three words for ya: hard-disk crash
No amount of delete flags, archive tables, transaction logs are going to help when keeping the DB/logs on a single disk without RAID.
Admin
"The Logs. Back when Sergio was working for Communibox, he was still in his "let's log every single trivial action" stage of his career."
Why are you selling this off as a noobish thing to do? This ended up saving the day and provided us with a great story. Plenty of RDBMSes out there now offer logging of every "trivial" thing straight outta the box.
I gotta say, I disagree with the sentiments expressed that consider logging all actions as a silly approach or as something a novice would do.
A novice wouldn't log a single thing. That's what a novice would do...
Admin
Wasn't that your job?
Admin
Admin
Admin
Admin
This. In addition to table sizing/query time problems, the other problem is that some developer has to remember to add "and isDeleted = 0" on every production query.
his will inevitably get forgotten at some point, and deleted records will show up in some report/page/whatever. Easy to fix, but frustrating.
Consider the likelihood of those types of problems when thinking about your solution, and go with what you think will work best for you. Don't simply say 'I need a deleted record flag' without considering consequences.
Admin
Admin
Admin
Admin
You have no idea what a full table scan is nor how a modern query optimizer works!
(And you seem to dumb to get the idea that indexes can contain more than one column!)
You have no place anywhere near a database!
Admin
Yeah, I got the feeling that "work for a major database company" == "own an Oracle book" for this dude.
Admin
If devs and QA repeatedly screw that up, they should be shown the door. How hard is it to analyze a table, check the columns, see that there's a "Deleted" bit column, and check that in your query? If you don't look for that in the first place, you have no right in authoring queries for a production system!
Admin
Note that I'm not objecting to the earlier suggestion to use a view, which would solve this quite nicely. I was suggesting that (where possible, which is certainly not all the time) avoiding a whole class of bugs by design is preferable to constantly introducing said bugs and relying on testers to catch them.
Admin
You say that as if it's a tough thing to figure out. It literally takes two seconds to figure out what's going on. If your company can't handle Deleted flags, then may God have mercy on whoever has to maintain it.
Admin
Oh dear, I wonder what happened to all the related order data, when the physical product records were dropped!
Admin
TRWTF is Michelle.
If you're going to sabotage your employer, in heaven's name, sabotage him!
If he withdraws you wages that supply you your bread and butter, make sure he never realizes how you have sabotaged him. Speak well of him as you quietly delete a handful of his most profitable products, think well of him as you reduce the price of others with promotions that negate his profit, stand by him as you jack up the price on other money-makers, compelling customers to leave the institution he represents.
I think if I got screwed by a man, and his bitch wife, I would not work against him a part of the time, and the rest of the time work for him. I would give an undivided effort towards his demise, but only in subtle ways a visionary could never recognize, forcing him to ever find new products just to stay afloat.