MySQL数据库查询耗时较长(查询当天第一笔数)

MySQL数据库查询耗时较长(查询当天第一笔数)

select* FROM hydb_s.pc1_em1 where Device = 'pc063' and from_unixtime(Unixtime,'%Y-%m-%d')=date_sub(curdate(),INTERVAL 0 DAY) order by Unixtime LIMIT 1;
运行结果1:14:34 select* FROM hydb_s.pc1_em1 where Device = 'pc063' and from_unixtime(Unixtime,'%Y-%m-%d')=date_sub(curdate(),INTERVAL 0 DAY) order by Unixtime LIMIT 1 1 row(s) returned 13.078 sec / 0.000 sec

有没有什么优化的方法

查询时间越短越好

使用索引,利用覆盖索引

数据量太大怎么写都不会太快。
Device ,Unixtime 组合索引
建立临时表。
按照天来分表。
都能大幅提升速度