Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的_sitecustomers表有大约 67,000 条记录,在优化了网站的搜索之后,我决定应该再索引 1 或 2 列来加快查询速度。有没有办法用这么多记录索引一个已经活跃的表?
_sitecustomers
67k 并不是一个真正的大量记录。一个简单的ALTER TABLE语句将起作用:
ALTER TABLE
ALTER TABLE `_sitecustomers` ADD INDEX `col1` (`col1`), ADD INDEX `col2` (`col2`);