Re: How many fields in a table are too many

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: How many fields in a table are too many
Дата
Msg-id 200306281917.h5SJHeX14044@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: How many fields in a table are too many  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > However, I am not sure how useful NOT NULL is in practice because there
> > are lots of columns that don't specify NOT NULL but have mostly nulls or
> > mostly non-nulls, which kills our caching --- what I was hoping to do
> > some day was to cache the null bitmask and offsets of the previous tuple
> > and use those if the new tuple has the same null bitmask as the previous
> > tuple.
>
> We already cache fairly effectively in cases where there are no nulls.
> I'm not sure it's worth trying to do something with the idea that two
> adjacent tuples might have nulls in the same places.

I was thinking of trying it and seeing how often it would be a win,
because right now, when we hit a null, our cache is dead.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How many fields in a table are too many
Следующее
От: weigelt@metux.de
Дата:
Сообщение: Re: How many fields in a table are too many