What executes faster?

Поиск
Список
Период
Сортировка
От Haller Christoph
Тема What executes faster?
Дата
Msg-id 200110010924.LAA27222@rodos
обсуждение исходный текст
Ответы Re: What executes faster?  ("Reinoud van Leeuwen" <reinoud@xs4all.nl>)
Список pgsql-hackers
[HACKERS] What executes faster? 
Now that I've found the solution for my duplicate key problem, 
I'm wondering what executes faster when I have to check for 
duplicates. 1. try to update    if no row affected -> do the insert    else done 2. do a select    if row not found ->
dothe insert    else do the update 
 
Another idea I'm thinking about: 
I'm doing the check for duplicate key by myself now. 
Aren't insert commands running faster, if I replace 
an unique index by a not-unique index. 

Regards, Christoph 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: Spinlock performance improvement proposal
Следующее
От: "Reinoud van Leeuwen"
Дата:
Сообщение: Re: What executes faster?