Indexing every column in a table

后端 未结 4 1478
北恋
北恋 2020-12-17 16:28

I have a couple of questions regarding MySQL indexing:

1) Is there any speed increase when indexing a table stored in memory?

2) When searching my table I ma

4条回答
  •  长情又很酷
    2020-12-17 16:52

    1) Yes, of course.
    2) No, it doesn't defeat the purpose of index. Just remember that mysql can't use more than 1 index per table and that adding more indexes slowdowns insert/update/delete operations. So avoid creating indexes that aren't used, create multicolumn indexes that matches your queries best instead.

提交回复
热议问题