AlterEgo
2007-01-19 22:05:13 UTC
Rich,
I'm a big fan of uniqueidentifiers. It really simplifies things when dealing
with horizontally scaled databases. The thing to remember is you will
experience fragmentation if used within a clustered primary key because they
are not inserted into the table in key order as is usually the case with
integers.
If you use uniqueidentifiers, make sure scheduled index rebuilds are part of
your plan.
-- Bill
I'm a big fan of uniqueidentifiers. It really simplifies things when dealing
with horizontally scaled databases. The thing to remember is you will
experience fragmentation if used within a clustered primary key because they
are not inserted into the table in key order as is usually the case with
integers.
If you use uniqueidentifiers, make sure scheduled index rebuilds are part of
your plan.
-- Bill
Good day all,
Just a general question regarding the what the performance hit of using
uniqueidentifiers vs ints for keys is in large hierarchical tables (lots
of
recursive parent/child queries).
There are many advantages to expose an "externally" facing
uniqueidenfitier
key, so is this a huge performance hit, or is it worth maintaining
internal
int keys, and somehow adding additional columns or JOINs for external IDs?
Thanks for any help!
Cheers,
Rich
Just a general question regarding the what the performance hit of using
uniqueidentifiers vs ints for keys is in large hierarchical tables (lots
of
recursive parent/child queries).
There are many advantages to expose an "externally" facing
uniqueidenfitier
key, so is this a huge performance hit, or is it worth maintaining
internal
int keys, and somehow adding additional columns or JOINs for external IDs?
Thanks for any help!
Cheers,
Rich