skip to Main Content

MySQL uses wrong index

There is a table with these columns: Name Type Id int DateTime datetime(6) CompanyId int (FK) IsExcluded tinyint(1) There are 2 BTREE indexes: CompanyId ComapnyId,DateTime,IsExcluded Following select is using the first index with only one column and this select takes…

VIEW QUESTION
Back To Top
Search