是真的列数不影响数据库性能,但行数吗? [英] Is it true that columns number does not affect database performance but rows number does?

查看:160
本文介绍了是真的列数不影响数据库性能,但行数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

和标题一样。



我正在考虑使用单独的表与JOIN或使用单一表,基本上我担心的性能。

谢谢。

解决方案

这称为垂直分区。如果您可以将不常使用的列分隔到自己的表中,那么可以减少I / O,但如果大多数查询最终加入表,则可能会增加开销。特别是如果两个表都在同一张光盘上。


As in title.

I'm considering to use separate tables with JOIN or use single table, basically I'm worried about the performance.

Thank you.

解决方案

This is called vertical partitioning. It can reduce I/O if you can separate less frequently used columns into their own table but will likely add overhead if most of your queries end up joining the tables. Especially if both tables are on the same disc.

这篇关于是真的列数不影响数据库性能,但行数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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