July 26, 2008 at 12:24 am
how should you optimize heavly transacted table? Ex: in OLTP scenario
Can you please suggest indexing & other factors that can help optimize a table that frequently changes.
July 26, 2008 at 10:15 am
Write simple queries and ensure that the can use indexes effectively
Create a clustered index that is unlikely to fragment fast.
Create a couple of nonclustered indexes to support frequently run queries.
Without a bit more info, I can't offer much more than that
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 26, 2008 at 10:18 am
What do you mean by optimize here?
This sounds like a test or interview question. Please show some effort here and give us what you are looking for, why, what thoughts you have and then ask a question. We don't do all the work for you.
July 28, 2008 at 4:35 am
With optimization i mean how best i can setup my table with indexes,query optimization etc. This table gets a lot of hits from users everyday with several DML commands.
I hope the explanation is good now, please provide suggestions.
July 28, 2008 at 4:48 am
Please post table schema, index definitions and some of the more frequent queries
Talking about table optimisation in the abstract is difficult at best.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 28, 2008 at 4:54 am
This is a question that i was chatting with few colleagues so no table structure i do understand there can be endless scenarios here but was just looking for some input from stalwarts here.
July 28, 2008 at 2:51 pm
The key thing is pick a good primary key and a good clustered index (not necessarily the same thing, but might be). Keep in mind that check constraints can be faster than foreign keys when it comes to insert/update (in many cases). Minimize/overlap indexes, so you aren't having to update anything you don't have to.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
July 29, 2008 at 8:46 am
abhishek.khanna (7/26/2008)
how should you optimize heavly transacted table? Ex: in OLTP scenarioCan you please suggest indexing & other factors that can help optimize a table that frequently changes.
Here's my standard spiel for requests such as this: hire a professional to mentor you as he/she gets things on your system tuned. This is SOOOO much more effective (both in the short AND long term) than hunting and pecking on a forum.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 29, 2008 at 9:30 am
Perhaps i need to learn how business is conducted in this forum but some people surely aint supportive n helpful. Problem is, there is always a wannabe daddy trying to teach some rules n regulations everywhere. So my answer to those self-proclaimed gurus is: if you cant help then dont poke your nose in, we can do without you. Please dont kill the very purpose of a forum.
July 29, 2008 at 9:34 am
abhishek.khanna (7/29/2008)
Perhaps i need to learn how business is conducted in this forum but some people surely aint supportive n helpful. Problem is, there is always a wannabe daddy trying to teach some rules n regulations everywhere. So my answer to those self-proclaimed gurus is: if you cant help then dont poke your nose in, we can do without you. Please dont kill the very purpose of a forum.
Is there anyone in particular you are trying to insult or was that aimed at all of us?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 29, 2008 at 9:48 am
@Gail: I am not trying to insult anybody just pointing out whats the purpose of a forum n how some people exploit it. You've been a great help & i really admire your effort to answer my query. Thanks again for helping me.
Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply