Slow query on information_schema.tables

前端 未结 2 1682
醉酒成梦
醉酒成梦 2020-12-18 01:18

I run a set of self-developed applications on a typical shared hosting service offering. I moved from a static configured table list of allowed tables to one based on a lis

2条回答
  •  误落风尘
    2020-12-18 02:05

    The information schema is not optimized, there are no indexes, just tables with metadata, and usually, when you run SELECT from the schema, it opens and reads files.

    Have a look at this article - Optimizing INFORMATION_SCHEMA Queries; in some cases it will help you.

提交回复
热议问题