| From: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
|---|---|
| To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
| Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Reducing the overhead of NUMERIC data |
| Date: | 2005-11-01 22:39:31 |
| Message-ID: | 20051101223931.GQ20349@pervasive.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
On Tue, Nov 01, 2005 at 11:16:58PM +0100, Martijn van Oosterhout wrote:
> Consider the algorithm: A number is stored as base + exponent. To
> multiply two numbers you can multiply the bases and add the exponents.
> OTOH, if you store the decimal inside the data, now you have to extract
> it again before you can do any calculating. So you've traded CPU time
> for disk space. Is diskspace cheaper or more expensive than CPU?
> Debatable I guess.
Well, I/O bandwidth is much more expensive than either CPU or disk
space...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-11-01 22:40:35 | Re: Reducing the overhead of NUMERIC data |
| Previous Message | Jim C. Nasby | 2005-11-01 22:38:08 | Re: Reducing the overhead of NUMERIC data |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-11-01 22:40:35 | Re: Reducing the overhead of NUMERIC data |
| Previous Message | Jim C. Nasby | 2005-11-01 22:38:08 | Re: Reducing the overhead of NUMERIC data |