Re: B-tree cache prefetches

2019-04-10 Thread Thomas Munro
On Tue, Nov 27, 2018 at 5:43 AM Andrey Borodin wrote: > > 31 авг. 2018 г., в 2:40, Thomas Munro > > написал(а): > > [1] https://arxiv.org/pdf/1509.05053.pdf > > I've implemented all of the strategies used in that paper. > On a B-tree page we have a line pointers ordered in key order and tuples

Re: B-tree cache prefetches

2018-11-26 Thread Andrey Borodin
Hi, Thomas! > 31 авг. 2018 г., в 2:40, Thomas Munro > написал(а): > > [1] https://arxiv.org/pdf/1509.05053.pdf I've implemented all of the strategies used in that paper. On a B-tree page we have a line pointers ordered in key order and tuples residing at the end of the page. Tuples at the end

Re: B-tree cache prefetches

2018-10-14 Thread Andrey Borodin
> 15 окт. 2018 г., в 2:38, Thomas Munro > написал(а): > > On Mon, Oct 15, 2018 at 12:03 AM Andrey Borodin wrote: >> 31 авг. 2018 г., в 2:40, Thomas Munro >> написал(а): >> A related topic is the cache-unfriendliness of traditional binary >> searches of sorted data. Check out "Array Layout

Re: B-tree cache prefetches

2018-10-14 Thread Thomas Munro
On Mon, Oct 15, 2018 at 12:03 AM Andrey Borodin wrote: > 31 авг. 2018 г., в 2:40, Thomas Munro > написал(а): > A related topic is the cache-unfriendliness of traditional binary > searches of sorted data. Check out "Array Layouts for > Comparison-Based Searching"[1] if you haven't already. It s

Re: B-tree cache prefetches

2018-10-14 Thread Andrey Borodin
Hello! > 31 авг. 2018 г., в 2:40, Thomas Munro > написал(а): > A related topic is the cache-unfriendliness of traditional binary > searches of sorted data. Check out "Array Layouts for > Comparison-Based Searching"[1] if you haven't already. It says that > if your array fits in L2 cache, as ou

Re: B-tree cache prefetches

2018-08-30 Thread Peter Geoghegan
On Thu, Aug 30, 2018 at 2:40 PM, Thomas Munro wrote: > A related topic is the cache-unfriendliness of traditional binary > searches of sorted data. Check out "Array Layouts for > Comparison-Based Searching"[1] if you haven't already. It says that > if your array fits in L2 cache, as our btree pa

Re: B-tree cache prefetches

2018-08-30 Thread Thomas Munro
On Fri, Aug 31, 2018 at 5:53 AM Andrey Borodin wrote: > Hi hackers! > > I've been at the database conference and here everyone is talking about cache > prefetches. > > I've tried simple hack > > diff --git a/src/backend/access/nbtree/nbtsearch.c > b/src/backend/access/nbtree/nbtsearch.c > index

Re: B-tree cache prefetches

2018-08-30 Thread Peter Geoghegan
On Thu, Aug 30, 2018 at 10:53 AM, Andrey Borodin wrote: > The idea is pretty simple - our search are cache erasing anyway, let's try to > get at least some of it by prefetching possible ways of binary search. > And it seems to me that on a simple query >> insert into x select (random()*100)::

B-tree cache prefetches

2018-08-30 Thread Andrey Borodin
Hi hackers! I've been at the database conference and here everyone is talking about cache prefetches. I've tried simple hack diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c index d3700bd082..ffddf553aa 100644 --- a/src/backend/access/nbtree/nbtsearch.