Re: [HACKERS] regression bigtest needs very long time - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: [HACKERS] regression bigtest needs very long time
Date
Msg-id 377A3652.CDD8CFE4@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] regression bigtest needs very long time  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] regression bigtest needs very long time
List pgsql-hackers
> > The question, though, becomes what percentage of operations on a
> > NUMERIC field are arithmetic, and what percentage are storage/retrieval.
> Good point.

We assume that most data stays inside the database on every query.
That is, one should optimize for comparison/calculation speed, not
formatting speed. If you are comparing a bunch of rows to return one,
you will be much happier if the comparison happens quickly, as opposed
to doing that slowly but formatting the single output value quickly.
An RDBMS can't really try to optimize for the opposite case, since
that isn't how it is usually used...
                   - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-hackers by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: [GENERAL] Postgres Upsizing Tool for MSAccess 97
Next
From: Michael Richards
Date:
Subject: Patches to get number of tuples affected