gpt4 book ai didi

sql-server - 例如,nvarchar(max) 的性能是否低于 nvarchar(100)?

转载 作者:行者123 更新时间:2023-12-01 09:57:17 39 4
gpt4 key购买 nike

例如,nvarchar(max) 的性能是否低于 nvarchar(100)?

最佳答案

here (SO)here (MSDN) 回答了同样的问题
引用 David Kreps 的回答:

When you store data to a VARCHAR(N) column, the values are physically stored in the same way. But when you store it to a VARCHAR(MAX) column, behind the screen the data is handled as a TEXT value. So there is some additional processing needed when dealing with a VARCHAR(MAX) value. (only if the size exceeds 8000)

VARCHAR(MAX) or NVARCHAR(MAX) is considered as a 'large value type'. Large value types are usually stored 'out of row'. It means that the data row will have a pointer to another location where the 'large value' is stored...

关于sql-server - 例如,nvarchar(max) 的性能是否低于 nvarchar(100)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2460598/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com