在 SQL Server 中存储大量 XML 类型数据的最佳实践 [英] Best Practices for storing large amounts of XML type data in SQL Server

查看:44
本文介绍了在 SQL Server 中存储大量 XML 类型数据的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人可以分享有关在 SQL Server 2008 中存储 XML 字段类型数据的最佳实践?我们有很多小的 XML 结构,还有一些更大的(>50MB).我们发现 DELETE 上的事情变得有点慢.任何建议/战争故事将不胜感激.

Does anyone have any best practices they can share with regards to storing XML field type data in SQL Server 2008? We have lots of small XML structures, yet some larger (>50MB). We're finding that things get a little slow on DELETE. Any advice/war stories would be appreciated.

推荐答案

在数据库之外再次投票.

Another vote for outside the database.

过去,我使用过类似于 James 推荐的方法,但 SQL Server 2008 支持新的 FILESTREAM 存储选项,该选项可以将 varbinary(max) 列存储在 NTFS 上的数据库之外,可能值得研究.

In the past, I've used an approach similar to what James recommends, but SQL Server 2008 supports a new FILESTREAM storage option, which can store varbinary(max) columns outside the database on NTFS, and might be worth looking into.

SQL Books Online 有很多很好的信息,从FILESTREAM 概述"开始.

SQL Books Online has a lot of good information, starting with "FILESTREAM Overview".

这篇关于在 SQL Server 中存储大量 XML 类型数据的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆