Ver originalalter table events add index i1(eventtypendx);alter table events add index i2(eventtypendx ,eventtime,devicename);