(no title)
da_chicken | 13 days ago
But then, they're also doing JOINs with the USING clause, which seems like one of those things that everybody tries... until they hit one of the several reasons not to use them, and then they go back to the ON clause which is explicit and concrete and works great in all cases.
Personally, I'd like to hear more about the claims made about Snowflake IDs.
zabzonk|13 days ago
I'm ashamed to say that despite using SQL from the late 1980s, and as someone that likes reading manuals and text books, I'd never come across USING. Probably a bit late for me now to use it (or not) :-(
tkejser|13 days ago
Not all databases support it. But once you start using it (pun) - a lot of naming conventions snap into place.
It has some funky semantics you should be aware of. Consider this:
There is only one `x` in the above `SELECT *` - the automatically disambiguated one. Which is typically want you want.n4r9|13 days ago
tkejser|13 days ago
The short story:
They are bit like UUID in that you can generate them across a system in a distributed way without coordination. Unlike UUID they are only 64-bit.
The first bits of the snowflake ID are structured in such a way that the values end up roughly sequentially ordered on disk. That makes them great for large tables where you need to locate specific values (such a those that store query information).