[Haskell-cafe] Re: sizeFM type

S. Alexander Jacobson haskell at alexjacobson.com
Tue Apr 27 15:05:06 EDT 2004

On Tue, 27 Apr 2004, Tomasz Zielonka wrote:
> On Mon, Apr 26, 2004 at 08:43:44PM -0400, ajb at spamcop.net wrote:
> > I would note, in addition, that they don't have that many pages indexed
> > on a single machine.  Almost nobody has a database with that many records
> > on a single machine, even those who have clusters of 64 bit machines.
> It seems I qualify as almost nobody, cause I've had a database with more
> than 2^34 records on a single IA32 machine. However, I wouldn't ever
> think of loading the entire database to RAM.

Why not?  Its only 17gb.  If you are doing any
substantive volume of transactions on that
database* you may be better off storing the
database in memory than buying the multiple CPUs
and reliable RAID arrays you need to serve it off

A Dell PowerEdge 4600 w/ 24gb of memory and a
write-caching controller w/ 6 36GB harddrives
(RAID0 state,logging,status) costs around $34k.
Using e.g. a Prevayler style in memory logged data
structures** you may be able to serve >100,000
queries/second. (see e.g.

To achieve just 500 queries/second using MaxDB
(SAP-DB from MySQL) requires apparently 61!! App
Calculating the cost of this much hardware is left
as an exercise for the reader, but, even ignoring
the hardware costs here, you are also paying for
rackspace and system administration to keep this
many servers operating.


* OTOH, if this is just your personal mail archive
then nevermind :- )

** Finishing off a Haskell variant of this concept
that also handles side-effects correctly right
now.  It is part II of the rdbms, appserver,
web/mail server triad that I plan to use for a
variety of different web apps.

S. Alexander Jacobson                  mailto:me at alexjacobson.com
tel:917-770-6565                       http://alexjacobson.com

More information about the Haskell-Cafe mailing list