SQL 2005 分区
我有一个有2亿条记录的数据库,我需要支持200次写入tps。您建议使用多少个分区?
I have a database with 200 million records and I need to support 200 write tps. How many partitions do you recommend to use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一。别打扰。分区会减慢写入速度 对于写入来说,
为该数据库的事务日志文件(LDF 文件)提供一个专用的快速卷更为重要。也不要添加日志文件:一个 LDF 仅位于一个卷上。
这是因为预写日志记录:One 和 两个。简而言之,数据页可能不会立即写入磁盘,但您的关联日志条目必须被确认为针对任何给定事务写入
One. Don't bother. Partitions will slow you down for writes
It's far more important for writes to have a dedicated, fast volume for your transaction log file (the LDF file) for that database alone. Don't add log files either: one LDF on one volume only.
This is because of write ahead logging: One and Two. Simply, a data page may not be written to disk immediately, but your associated log entry must be confirmed as written for any given transaction