- Local time
- Tomorrow, 00:30
- Joined
- Jan 20, 2009
- Messages
- 12,895
Would be interesting to see performance comparisons on modern systems.The difference between varchars and integers is far less noticable now a days, but the difference is definately there... If only because varchars tend to be longer and less sequential vs integers. 20 years ago it was really really noticable....
Indexing is a science on its own. Different limitations affect the indexing performance as they are created from the retrieval performance. I would expect the indexing performance on larger values to be lower due to the amount of data being processed, but, if the index itself is a hash, it should not make much difference to using the index. No doubt it would depend on the database technology, particularly the specifics of the indexing systems.
Of course all this is a black box to us users except when the database system wizards decide to explicitly reveal something. Unless thoroughly tested, much of what we know about databases comes down to educated guesses because they tell us so little about what really happens in the engine. I guess we should not expect them to reveal all their magical secrets. To be honest, I doubt that I could understand much of it even if they did explain it to me. Set theory isn't trivial.