Re: Pulling data from a constraint def

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: Pulling data from a constraint def
Дата
Msg-id AANLkTikiPzi2O3uwesdC5Lvtrd0Pj-7aaFSDdvLVkgNO@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pulling data from a constraint def  (David Fetter <david@fetter.org>)
Ответы Re: Pulling data from a constraint def  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, May 12, 2010 at 12:58 AM, David Fetter <david@fetter.org> wrote:
> If you've measured a performance issue for a table that tiny, it's a
> bug that needs fixing in PostgreSQL.  What measurements have you done
> so far?

Just for fun, I tried it out myself. Here are the times I got on my
modest laptop:

CHECK constraint:
 * 500k INSERTs: 3.8 seconds
 * 500k UPDATEs: 6.0 seconds

Foreign Key:
 * 500k INSERTs: 18.7 seconds
 * 500k UPDATEs: 21.2 seconds

Test SQL is attached.

Josh

Вложения

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Server tries to connect without ssl support
Следующее
От: Jan Wieck
Дата:
Сообщение: Retiring from the PostgreSQL core team