表名或列名长度是否影响性能? [英] Table name or column name length affect performance?

查看:109
本文介绍了表名或列名长度是否影响性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是MySQL + Hibernate。

MySQL表名长度和列名长度会影响应用程序的性能吗?



 #1 
awd(表格)
id int,
awd_nm varchar(...),
tit varchar(...)

#2
award(table)
id int,
award_name varchar (...),
title varchar(...)

哪个更好?

解决方案

没有它不会,也没有可以测量的程度。

花更多的精力使你的模式容易理解。在长(短)的时间内,您将获得更多的收益,而不会使用更短和无法读取的模式名称获得无法估量的飞秒级。


I'm using MySQL + Hibernate.

MySQL table name length and column name length affect application performance ?

exmaple)

#1
awd (table)
id int,
awd_nm varchar(...),
tit varchar(...)

#2
award (table)
id int,
award_name varchar(...),
title varchar(...)

which is better ?

解决方案

No it will not, not to any degree that you can measure.

Spend more effort making your schema easy to understand. You'll gain more in the long (and short) term than the unmeasurable femtoseconds you'll gain with shorter and unreadable schema names.

这篇关于表名或列名长度是否影响性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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