Re: Anyone for SSDs? - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Anyone for SSDs?
Date
Msg-id 4D02BA18.2080105@agliodbs.com
Whole thread Raw
In response to Re: Anyone for SSDs?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
>> Heck, even RAM isn't 1.0.  I'm also involved with the Redis project,
>> which is an in-memory database.  Even for a pure-RAM database, it turns
>> out that just using linked lists and 100% random access is slower than
>> accessing page images.
> 
> That's a slightly different problem, though.  Sequential vs. random
> access is about whether fetching pages n, n+1, n+2, ... is faster than
> skipping around, not whether accessing fewer pages is faster than
> more.

It's not though.  Redis stores stuff as lists and sets, so it actually
does a lot of sequential access of data.  Like if people are accessing
an ordered set, they're usually pulling the whole thing.  It turns out
that *even in RAM* storing stuff in an ordered fashion on data "pages"
is more efficient than just using pointers.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: ALTER EXTENSION ... UPGRADE;
Next
From: Jeff Janes
Date:
Subject: Re: Anyone for SSDs?