<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 2, 2007, at 5:48 AM, Lennart Regebro wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">On 11/1/07, Matt Hamilton &lt;<a href="mailto:matth@netsight.co.uk">matth@netsight.co.uk</a>&gt; wrote:<br><blockquote type="cite">An interesting idea. &nbsp;Surely we need the opposite though, and that is an<br></blockquote><blockquote type="cite">additional BTree with a very large bucket size, as we want to minimize the<br></blockquote><blockquote type="cite">chance of a bucket split when inserting? &nbsp;Then we occasionally consolidate and<br></blockquote><blockquote type="cite">move the items in the original BTree with the regular bucket size/branch factor.<br></blockquote><br>Would it be possible to not "occasionally" consolidate, but actually<br>do it ongoing, but just one process, thereby always inserting just one<br>transaction into the normal BTree at a time? Or does that cause<br>troubles?</span></blockquote></div><br><div>I think that option would work. &nbsp;I think it would suffice to do a</div><div>"Big.update(Small); Small.clear()" operation before a nightly pack.&nbsp;</div><div>It might invalidate every bucket in every cache, but BTrees are</div><div>designed to perform reasonably without a cache.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br></div><div><br class="webkit-block-placeholder"></div></body></html>