| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Maintaining cluster order on insert |
| Дата | |
| Msg-id | 44DAEA1C.5050509@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Maintaining cluster order on insert ("Jonah H. Harris" <jonah.harris@gmail.com>) |
| Список | pgsql-patches |
Jonah H. Harris wrote: > On 8/9/06, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> UPDATE tries to place the new tuple on the same page it's already >> on. > > I think he meant for INSERT. > Right. Update is indeed taken care of already. One example where this would help would be a customer_history table that stores all transactions of a customer. Primary key is (customer_id, transaction_id). You would want to keep the table clustered by customer_id to make it quick to retrieve all transactions of a customer. In general, any table with more or less random insert/delete activity that you want to keep in order would benefit. - Heikki
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера