Re: int Versus decimal
- From: "Adam Machanic" <amachanic@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Sep 2005 12:31:06 -0400
INT only uses 4 bytes because it doesn't have the precision that DECIMAL
has. How are you hoping to maintain the same precision when converting back
and forth?
By the way, if your column uses a precision up to 9 digits (decimal), it
will only use 5 bytes.
--
Adam Machanic
SQL Server MVP
http://www.datamanipulation.net
--
"Herb Ray" <herb@xxxxxxxxx> wrote in message
news:JzfWe.170$Zl2.10211487@xxxxxxxxxxxxxxxxx
> Howdy - -
>
> I have to keep time series on large amounts of numeric data (millions
> of rows). I had the idea of storing these data as int and converting to
> decimal in views; this way, my numeric columns shrink down to four bytes
> from 9 bytes.
>
> Would the performance gained be an improvement even with the conversion
> overhead of the view?
>
> - - Herb
.
- Follow-Ups:
- Re: int Versus decimal
- From: Herb Ray
- Re: int Versus decimal
- References:
- int Versus decimal
- From: Herb Ray
- int Versus decimal
- Prev by Date: int Versus decimal
- Next by Date: Re: int Versus decimal
- Previous by thread: int Versus decimal
- Next by thread: Re: int Versus decimal
- Index(es):
Relevant Pages
|