Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)

Поиск
Список
Период
Сортировка
От Andrew Borodin
Тема Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)
Дата
Msg-id CAJEAwVHc00_7_iLH07Eh6CTtMaTgREkNZ5hbtLyGVEGEVOLJzA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
>So on average in a large randomly filled index, pages
spend more time nearer 50% full than 100% full.

I think we can make this number more...controllable.
Before split we can check whether left and right pages both are in
shared buffer and if they are seriously under certain fillfactor, say
under 75%. We can unload some of data there instead of spliting. This
will slow down insertions a bit, but we can have any fillfactor we
want for random inserts. I mean, for sure, someone can construct bad
input to gain low fillfactor, like it is with qsort (
http://www.cs.dartmouth.edu/~doug/mdmspe.pdf ), but every real
scenario will not trigger this behavior.

But then we have to think about locks, WALs etc.


Best regards, Andrey Borodin, Octonica & Ural Federal University.



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

Предыдущее
От: Artur Zakirov
Дата:
Сообщение: Re: to_date_valid()
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables)