1.

Which of these comparisons is slowest?(a) INT/INT(b) INT/BIGINT(c) BIGINT/BIGINT(d) All are of same speedThis question was addressed to me in homework.I want to ask this question from MySQL Query Optimizer topic in portion Query Optimization of MySQL

Answer»

The correct OPTION is (B) INT/BIGINT

Explanation: On COMPARING indexed columns, identical data TYPES will give better performance than dissimilar types. So an INT/INT or BIGINT/BIGINT comparison is faster than an INT/BIGINT comparison.



Discussion

No Comment Found

Related InterviewSolutions