Re: What secret resipy of PostgreSQL (insert more faster than delete)?

From: Chris <dmagick(at)gmail(dot)com>
To: henryJack <henryJack85(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What secret resipy of PostgreSQL (insert more faster than delete)?
Date: 2007-07-10 01:03:00
Message-ID: 4692DAC4.1060605@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

henryJack wrote:
> What secret resipy of PostgreSQL (insert more faster than delete)?
>
> I doing an investigation on PostgreSQL, I figure out PostgreSQL powerful in
> inserting data into the database.
>
> We normally, expect that insert more slow than select and delete queries
> because database have to create a row then set the data one by one into the
> database (in between check is it the row correct to inside?)....
>
> Delete just delete the whole row that checked ones.

Not really. I don't know the nitty-gritty of how postgres does it's work
but foreign key checks, triggers, rules, the number of indexes in a
table (amongst other things) can all affect insert, update and delete
speeds.

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message novnov 2007-07-10 01:09:45 Postgres 8.2 binary for ubuntu 6.10?
Previous Message George Pavlov 2007-07-09 23:59:45 Re: dropdb ; createdb equivalent without createdb permission?