开发者

Performance Considerations for using SQL Server Extended Properties

开发者 https://www.devze.com 2022-12-08 20:49 出处:网络
To All, We are wanting to use Extended Properties as p开发者_运维问答art of our database documentation.One of my co-workers mentioned that on a prior project they used Extended Properties and it impa

To All,

We are wanting to use Extended Properties as p开发者_运维问答art of our database documentation. One of my co-workers mentioned that on a prior project they used Extended Properties and it impacted database performance.

I have been searching the internet for any corroborating information in regard to this. I've not found anything.

Has anyone encountered this? If so, is there an article or link where I can read up on this?

Thanks - Mr. Do

Note: this is a SQL Server 2005 database.


Your colegue is wrong. There is no performance impact on normal database operations if you use extended properties.

The only impact extendet properties have is on operations that read or write extended properties. This impact depends on the way properties are read and set, and the size and number of properties.


They are simply text properties: not considered in plans, compiling, statistics, anything.

Unless you do some painful/fancy "SELECT * FROM sys.extended_properties" stuff...

They are also very useful to document and add comments to the database objects: especially in conjunction with 3rd party tools like Red Gate SQL Doc (may be others)


The only thing I've seen is that when I am updating them, I am sometimes affected by locks already on the object when particular processes are running, but performance is not a reason to avoid using them.

FYI: I noticed that extended properties disappear on UDFs when a UDF is altered to remove schemabinding and then re-add schemabinding.

0

精彩评论

暂无评论...
验证码 换一张
取 消