Is there any performance gain in indexing a boolean field?

后端 未结 7 1872
独厮守ぢ
独厮守ぢ 2020-12-02 10:39

I\'m just about to write a query that includes a WHERE isok=1. As the name implies, isok is a boolean field (actually a TINYINT(1) UNSIGNED

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 10:58

    Actually this depends on queries you run. But, generally yes, as well as indexing a field of any other type.

提交回复
热议问题