Re: Sequence Question DOH!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sequence Question DOH!
Дата
Msg-id 4083.1091750584@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Sequence Question DOH!  (Oscar Tuscon <obtuse@bmwe30.net>)
Список pgsql-general
Oscar Tuscon <obtuse@bmwe30.net> writes:
> I found the average select nextval() call was taking 2ms, which seems
> a bit slow to me. Throw in the fsync I suppose and that'd explain it.

> Interestingly, in the tests I ran the minimum select nextval() was
> 400us, and the max was 35ms, with an average of 2ms.

I believe that nextval() only actually writes to disk once every 32
calls.  This probably explains the variability.

            regards, tom lane

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

Предыдущее
От: Duane Lee - EGOVX
Дата:
Сообщение: Re: Insert into sintax
Следующее
От: "Jim Wilson"
Дата:
Сообщение: Commit Transaction Command