In that case, I would go for integer. Leaves you open for variations later.
I have always found integer to be the best choice for performance and just
plain stability.

Dennis McGrath

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of A. Razzak
Memon
Sent: Saturday, January 18, 2003 3:54 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: text (1) vs. integer - Razzak's Reply


At 13:33 18/01/2003 -0800, Atrix Wolfe wrote:

>I was wondering for preformance, which would be better to have
>for a column which has 4 possible states(1,2,3,4 vs A,B,C,D) ?
>Would it be text (1) since a char takes up 1 or 2 bytes (depending
>on if its unicode or not...not sure how rbase stores it) or would it be
>integer (4 bytes?).

Atrix,

In either case, R:BASE reserves a minimum of four bytes of
internal storage space.

Cheers,

Razzak.

Reply via email to