Connecting Tech Pros Worldwide Help | Site Map

Uniqueness checking overhead

  #1  
Old November 11th, 2008, 07:15 PM
jefftyzzer
Guest
 
Posts: n/a
Friends:

Does anyone have an informed idea of how much typical/average/ball-
park overhead is added to an UPDATE or INSERT to a table when that
table has a unique index defined on a column or set of columns that is
present in the UPDATE or INSERT?

I expect the overhead to be very low because of fast disk drives,
index buffering, and the fact that the index entries are already
ordered, but am wondering if we're talking about 1ms, 2, 5, etc., and
what factors other than those I mention above will affect this
overhead cost.

Thanks,

--Jeff
  #2  
Old November 11th, 2008, 11:35 PM
Mark A
Guest
 
Posts: n/a

re: Uniqueness checking overhead


"jefftyzzer" <jefftyzzer@sbcglobal.netwrote in message
news:656c4a41-5cc0-4332-9e0f-321a8fe2637f@d10g2000pra.googlegroups.com...
Quote:
Friends:
>
Does anyone have an informed idea of how much typical/average/ball-
park overhead is added to an UPDATE or INSERT to a table when that
table has a unique index defined on a column or set of columns that is
present in the UPDATE or INSERT?
>
I expect the overhead to be very low because of fast disk drives,
index buffering, and the fact that the index entries are already
ordered, but am wondering if we're talking about 1ms, 2, 5, etc., and
what factors other than those I mention above will affect this
overhead cost.
>
Thanks,
>
--Jeff
If you are talking about a column that would be indexed anyway, but not
necessarily a unique index, then probably almost no difference.

You could set up a test yourself (probably need at least 100 executions) and
do a snapshot for dynamic SQL to see the execution times of the various
scenarios. But it does depend on your bufferpool hit ratio, which depends on
how you set up your tablespaces and bufferpools, and how much memory you
have for them.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner question: find or create function jrpfinch answers 6 January 19th, 2007 01:05 PM
.Net frameword Resources ( vb.net , asp.net etc...) shamirza answers 0 January 17th, 2007 08:05 AM
STL hashmap Daniel Heiserer answers 4 July 22nd, 2005 06:11 AM