varchar Fields - Is a Power of Two More Efficient?

前端 未结 5 1461
旧时难觅i
旧时难觅i 2020-12-08 09:02

Is it more efficient to use a varchar field sized as a power of two vs. another number? I\'m thinking no, because for SQL Server the default is 50.

Howe

5条回答
  •  一整个雨季
    2020-12-08 09:39

    It depends on the specific database implementation, but I wouldn't expect it to. It's not performing any calculations on the number of characters, generally, so it shouldn't affect performance - only space.

提交回复
热议问题