Subject Re: [firebird-support] Re: GUID as Primary Key
Author David Garamond
Luke Young wrote:
> I see from this list that there are those achieving sub one second
> queries, what is being used to index these tables and what
> optimisations have to be made to break the 1 second barrier?

6 second is very slow.

1. do you use index on your "PK" (obviously if it is already a PK, it
uses a unique index)?

2. is your GUID random or does it have a uniform prefix? microsoft now
has a random-number-based GUID so it's completely random and is better
in term of index distribution.

3. search the archives, there are lots of GUID-related threads already.
some people use CHAR(32) (representing the GUID as hexstring), but the
most efficient is CHAR(16) BINARY/OCTETS.

--
dave