Subject | Re: [firebird-support] GUID as Primary Key |
---|---|
Author | Ann W. Harrison |
Post date | 2004-03-02T22:31:50Z |
>On Tuesday 02 March 2004 16:31, David Johnson wrote:At 05:14 PM 3/2/2004, Jaume Sabater wrote:
>
> > My question: Is there a more efficient way that I can use GUID's. I
> > have read on this list people achieving sub 1 second transactions
>I think you could get better results in case you use integer type, in caseIn the case of Firebird indexes, that's not true. All keys are manipulated
>that fits your needs, since comparing integers is always faster than
>comparing strings.
so they compare bytewise. An eight byte string and an int64 take the same
amount of time to compare.
Regards,
Ann
BTW, prefix compression, not index balance, is the reason to put the
unchanging part of the key first.