简体   繁体   English

在运行时获取列类型会影响MySQL性能吗?

[英]Does getting column types at runtime affect MySQL performance?

Here is a question about getting column information. 这是有关获取列信息的问题 What if ui asks table for all or several columns about theirs types? 如果ui向表格询问有关其类型的全部或几列怎么办? From first look nothing special just select as answered , but this leads to INFORMATION_SCHEMA.COLUMNS access which can lead to performance impact, because this table is service in MySQL. 乍一看,没有什么特别的,只需选择答案即可 ,但这会导致INFORMATION_SCHEMA.COLUMNS访问,这可能会导致性能影响,因为此表是MySQL中的服务。 Does my assumption about performance is true? 我对性能的假设是否正确?

There is a small impact on performance. 对性能的影响很小。 Suggest you time the request to see if the impact is acceptable. 建议您安排请求时间,以查看影响是否可以接受。 And you should probably design your application to fetch the information only once, not every time you are about to query the table. 而且,您可能应该将应用程序设计为仅获取一次信息,而不是每次要查询表时都获取信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 数据库中的列顺序是否会影响性能? - Does column ordering in databases affect performance? 列名宽度是否会影响Microsoft SQL Server / Oracle / MySQL中的SQL查询性能? - Does column name width affect sql query performance in Microsoft SQL Server/Oracle/MySQL? 在order by子句中具有可为空的索引列是否会影响MySQL查询性能? - Does having a nullable indexed column in the order by clause affect MySQL query performance? Mysql:字段大小/显示宽度是否影响索引性能? - Mysql: Does field size/display width affect index performance? 平均行长mysql是否会影响其性能? - Does average row length mysql affect its performance? 在MySQL中,TEXT或BLOB的指定大小是否会影响性能或表大小? - In MySQL, does the designated size of TEXT or BLOB affect performance or table size? WHERE 子句中的条件顺序是否会影响 MySQL 性能? - Does the order of conditions in a WHERE clause affect MySQL performance? WHERE子句中的字段顺序是否会影响MySQL的性能? - Does the order of fields in a WHERE clause affect performance in MySQL? 在mysql中,一个表中的数据量是否会影响性能 - in mysql, does quantity of data in one table affect performance 使用order by时,数字的长度是否会影响mysql的性能? - Does the length of a number affect performance in mysql when using order by?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM