当然会有影响,插入数据的时候会导致索性的更新。索性越多,插入会越慢。可以看文档描述 Although it can be tempting to create an indexes for every possible column used in a query, unnecessary indexes waste space and waste time for MySQL to determine which indexes to use. Indexes also add to the cost of inserts, updates, and deletes because each index must be updated. You must find the right balance to achieve fast queries using the optimal set of indexes.
当然会有影响,插入数据的时候会导致索性的更新。索性越多,插入会越慢。可以看文档描述
Although it can be tempting to create an indexes for every possible column used in a query,
unnecessary indexes waste space and waste time for MySQL to determine which indexes to use. Indexes also add to the cost of inserts, updates, and deletes because each index must be updated
. You must find the right balance to achieve fast queries using the optimal set of indexes.