- 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
Admin
Fat bastards! Why you get places by rolling around, like you do in my dreams?!
Admin
Admin
Admin
Admin
Addendum (2011-11-07 14:23): EDIT: I mispoke. The query on the real inventory table isn't necessarily shit - it just runs like shit because there's no index. Sorry.
Admin
Admin
Admin
Admin
My old friend Bobby Tables had a temporary index once, and of course it was no living matter!
Admin
I am using PostgreSQL where a clustered index seems to be something different from a clustered index in MS Sql server.
I should by now be used to different sql servers using the same word for different features.
Clustered index in Postgresql is described at http://www.postgresql.org/docs/8.3/interactive/sql-cluster.html
Admin
I think that's a leap, but if that's the point that is trying to be made, it's very unclear.
It's specifically pointed out that temp table is re-generated every query (of course it is) as if it's going to FUBAR the clustered index, which it won't. Do you see what I mean? No one can say it's a WTF with the information that was given.
You assume they aren't using the temp table to query, I give them the benefit of the doubt and assume they are.
Admin
Wow. The obvious-and-stupid trolls have run everyone off. The only ones left are the usual suspects and Serguey123's multiple sockpuppets. Nice!
Admin
(Southpark reference aside, 3 represents Matthew's reaction to 2, and 4 goes to the vendor.)
Admin
Admin
So we've been arguing about two different understandings of the article. That works for me.
Admin
Sure it can make sense. Are you going to join to that table a lot on the id? It also allows the fastest writes, since the new row always goes at the end, instead of needing to reshuffle the (potentially huge) table to fit it in somewhere in the middle. You can also be sure that that particular column will never ever change, whereas pretty much any other column in the table could change, triggering a re-shuffling of the row in addition to updating the column. There are some high level DBA articles I've seen that argue that clustering on anything other than an identity column will eventually cause problems.
Admin
Frighteningly (though I disagree) there are people within who think this three letter acronym is better than the 3 letter acronym it replaced (which was swallowed up by a two letter acronym).
Point is, they're quick to promote their own OS, Message Broker or (God forbid) Database when they want to make some coinage, but they are incapable of supporting anything (be it their own product or someone else's). I'm often amazed that they are capable of creating a veritable shitstorm over some irrelevant alert from their monitoring of a Test environment (usually caused by testers under a specific Change Request that outlines that such an alert will trigger), yet are incapable to act when we tell them (they never notice themselves) that the production version of same system is unavailable with significant impact.
sigh Maybe three letter acronyms are the WTF....
Admin
Admin
As for mice vs mouses, it would seem that mice is more common according to Wikipedia (the font of all Wisdom:
Of course, the same wikipedia also refers to WikiProject Indexes....MELTDOWN: Don't know what to believe anymore.....
Admin
Nah, a better troll would have eliminated all of the one- and two-column indices. That way smart people could explain to the uninformed why the one- and two-column indices aren't needed.
Pretty good, though. Did I mention that we have a table with 135 columns? I need to talk to my DBA about this!
Admin
Sorry guys I'm too busy today fucking bitches on my yacht.
Come tomorrow.
Admin
Sounds like an excellent time-killer for a rainy day. Oh, and please post the results here! :)
Admin
K9 usually taps me in the first couple minutes.
Admin
Admin
The Truth is, that nobody writes mouses. Really. I even searched the Chinese, French, German, Hebrew, Russian, and Spanish corpora—nada!
Admin
Admin
This kind of sounds like a pile of crap from a company who's name sounds close to an accident.
Write big app, hire tons of people off the street including the DBA that is clueless. No indexes at first very bad performance, blame our DBAs. Well put on indexes now and on just about every column in all the tables. Cluless DBA hears that bit map indexes take much less space so this is what he uses even on columns that are unique.
Oracle did the right thing for once and figures out that reading a bit map index is crap in most caes, and ignores it. Application still runs badly, blames our DbAs, our sysadmins, our SAN, etc.
Clueless DBA reads that full table scans are bad and can't understand why Oracle hates his inexdes. So now he plays around with tuning parameters that are used the calculate the cost of operations. He makes it so not matter what the size of the table, type of index, stats on the table, an index will always be used.
Yea, no more full table scans, his job is done. Except the application is still slow as hell. He gets let go from the project about this time, leaving it to our DBAs to figure out what he did.
Ooops too far into production now to make major changes like putting the right indexes on tables. And no to putting the parameters back to normal, it's just too much risk at this point, says the customer and project managers. But, hey let's buy more memory and CPUs for the servers, that's sure to make it faster.
6 to 7 years later the DB is still messed up.
Admin
No, TRWTF if anyone being so mercenary that they think helping a friend and not charging for it is a WTF.
Admin
On the subject of mice vs mouses, I defer to the foremost authority on the subject, Jinks the cat how said: "I hate miceses to pieces!".
Admin
The WTF is that, at least on some DB products, building a clustered index means the entire table gets physically re-arranged so that its data matches the order of the index.
The line about 'new rows are not included' seems troll-ish, but that may also vary from one DB product to another.
Admin
The WTF comes up if the table's original order is different than the order specified by the index. If you write the data to the table in order of "LastName, FirstName" and build a clustered index on "SSN", the entire table will get physically re-written in order of SSN.
If the new order already matches the index order, it's not a big deal.
Admin
Admin
Admin
More a small mistake from me. It seems that a "cluster created on an index" is something completely different from a "clustered index".
Admin
The vendor wants more $$$ perhaps. Come on, lets upgrade the system to 7 figures.
Admin
All that just means they're not fat enough. If they were totally housebound then they'd be net carbon sinks.
Admin
I think it's actually "mieces" so it rhymes with "pieces"
Admin
Hopefully that's clear. Rhymes with IBM, SAP, HP, Atos, Accenture, GE and Infosys.
Admin
The gender of the friend is not mentioned in the article so perhaps Matthew had other rewards in mind.
I guess altruism can't be ruled out either. considers the world Actually it probably can be.
Admin
The gender preference of Matthew isn't specified either... just sayin'
Admin
Admin
MS SQL Server inherited clustered indieces from Sybase.
This is what the Sybase Adaptive Server docu says about clustered indieces:
Admin
To create an index from scratch on a 'big' table, can take a significant amount of time. Normally an index is updated when the table data changes, thereby amortizing the processing requirements against future selects or updates on the table.
Since reporting 'is/should' just be a 'dump' of the final temp table it is truly a WTF........ Unless the reporting is doing some sort of joining/ selects against other tables with the temp data, which would be another WTF.
Admin
That is a really stupid thing to do........ Specifically because not all table data is suitable for 'indexing' ........ Hay lets just index these BLOBS & CLOBS Columns.
Admin
thanks, i'll take that as a compliment :)
Just for the record, I've often helped out friends and ex-colleagues with various IT issues and I've never charged for it. Admittedly, I have accepted the odd bottle of booze by way of a thankyou, but that's neither expected nor demanded.
Admin
Admin
F*ck off Blob
Admin