I recall Praveen mentioning a while ago that ...

I recall Praveen mentioning a while ago that SELECT statements run much faster if the table key is number, instead of a text string generated through UNIQUEID().

What would be the column expression to generate these unique numbers? The documentation suggests โ€œRandBetween(numberLow, numberHigh)โ€, but it is not clear that this generate unique numbers in the column. Can someone confirm that this is the best approach?

0 3 312
3 REPLIES 3

@Christian_Farley2 I cannot recall saying that, and I donโ€™t think (absent the context) that this would be true.

I must be confusing threads then. But in any case the question stands: What would be the most performant Select between a key that is made with UNIQUEID (a text string) and a key that is a straight number?

@Christian_Farley2 the Rand between method would work.

Top Labels in this Space