Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对不起,如果这个问题以前被问过。
我正在考虑将索引放在VARCHAR(100). 'foo' 上的索引是否比 'foobar123' 上的索引占用更少的空间?
VARCHAR(100)
随着该值用于索引,所需的空间将更多。
但由于它是压缩的,我认为不会对性能产生巨大影响。