If PostgreSQL decides to use an index, does he every time load the whole B-tree into memory? or maybe loads only specific subtree or some chunks of index? -- View this message in context: http://www.postgresql-archive.org/Index-loading-methods-tp5952220.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
On Mon, Mar 27, 2017 at 8:36 PM, pinker <pinker@onet.eu> wrote: > If PostgreSQL decides to use an index, does he every time load the whole > B-tree into memory? or maybe loads only specific subtree or some chunks of > index? src/backend/access/nbtree/README provides details about the algorithm of Lehman and Yao used in btree indexes. In short, backends share buffer pages, and those will stay around if they are hot enough. If there is a high page eviction for those btree pages, you may finish by needing to reload the tree, but with a proper tuning (enough memory) that won't happen. -- Michael
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера