Обсуждение: What secret resipy of PostgreSQL (insert more faster than delete)?

Поиск
Список
Период
Сортировка

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

От
henryJack
Дата:
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.

Quite curious on this....

Any new technology implemented?

Thank you

Peace!!!!

-Henry Jack:computer-user:
--
View this message in context:
http://www.nabble.com/What-secret-resipy-of-PostgreSQL-%28insert-more-faster-than-delete%29--tf4040603.html#a11478978
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

От
Chris
Дата:
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/