September 26, 2007 at 9:08 am
I am in debate with our DBA about storing all codes in one single table or having a code table for each code entity.
A typical system may have 10 to 15 code entities.
Any thoughts?
September 26, 2007 at 9:11 am
I hope this does not start a war again. Short answer is don't put everything in the same table. There's no [real] advantage in doing so and a lot of disadvantages.
Search this forums for lookup tables in the articles sections. When you find an article with over 100 replies, you most likely hit the one I want you to find.
September 26, 2007 at 10:09 am
Agree with Ninja - separate.
I usually force "code integrity" by using relational integrity (i use foreign key constraints on the fields holding said codes), so I almost always split the codes into separate tables.
----------------------------------------------------------------------------------
Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?
September 26, 2007 at 12:34 pm
Okay, after several hours of reading numerous articles on the debate I agree that a relational database should be design as such.
Thanks for the feedback.
September 26, 2007 at 2:54 pm
Wow that was quick... the debate I have in mind lasted over a month... You just broke the world record :D.
September 27, 2007 at 6:33 am
Damn, I didn't even get all the tape wrapped around my fists to start swinging.
Good choice. I'm facing a major redisign on a fairly substantial system to remove the uber-code table because it's proven to be unmaintainable, a performance nightmare, and a source of bad data. It ain't fun.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 27, 2007 at 7:41 am
Guess I get to put the bat down... 😀 Separate tables.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2007 at 8:25 am
As I said... this can quickly turn into a wholly war :hehe:.
September 27, 2007 at 4:12 pm
This ssssssooooooooo dangerous that "Bankers Rounding" could be in threatened. Apparently we are all in the same boat this time :D:D:D:
* Noel
September 27, 2007 at 4:19 pm
What was the final post count of that thread??? I lost count after a few 100s! :w00t:
September 27, 2007 at 4:22 pm
Wow 376 posts in a single thread... must be the all time record here.
September 27, 2007 at 7:46 pm
Heh... how quickly you all forget... there were TWO of the bloody damned things 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
September 28, 2007 at 4:33 am
This is where you see why I'm still sane >> I wasn't following any of them :w00t::hehe:.
September 28, 2007 at 7:09 am
I did :blush:
bugger! :crazy:
Far away is close at hand in the images of elsewhere.
Anon.
September 28, 2007 at 7:52 am
chris dietz (9/26/2007)
I am in debate with our DBA about storing all codes in one single table or having a code table for each code entity.A typical system may have 10 to 15 code entities.
Any thoughts?
I know everyone quickly suggested seperate tables, howveer can you be more descriptive of the requirements you must meet and what you mean by code entities? I could tell you seperate tables but if you need flexability and scalability with little effort down the line then a single table may meet your actual goal, but if you have trillions of record for each code and don't mind system maintenance then seperate tables may be more efficient. But based on what you put out I can say profoundly, "not enough information provided".
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic. Login to reply