[英]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.