View Single Post

   
  #10 (permalink)  
Old 04-18-2008, 12:58 PM
Tom Lane
 
Posts: n/a
Default Re: Insert performance vs Table size

"Praveen Raja" <praveen.raja@netlight.se> writes:
> I know that having indexes on the table adds an overhead but again does
> this overhead increase (for an INSERT operation) with the number of rows
> the table contains?


Typical index implementations (such as b-tree) have roughly O(log N)
cost to insert or lookup a key in an N-entry index. So yes, it grows,
though slowly.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Reply With Quote