Re: Insert performance vs Table size

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Praveen Raja" <praveen(dot)raja(at)netlight(dot)se>
Cc: "'Jacques Caron'" <jc(at)directinfos(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Insert performance vs Table size
Date: 2005-06-28 14:25:59
Message-ID: 14991.1119968759@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Praveen Raja" <praveen(dot)raja(at)netlight(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message bsimon 2005-06-28 14:50:17 Réf. : tricky query
Previous Message Merlin Moncure 2005-06-28 14:21:16 tricky query