Query is too slow

Hi, guys. I have known that the influxdb is faster than elasticsearch but I experienced the influxdb is slower. why is it?

The query is
select median(field1), min(field1), max(field1) , sum(fiedl2), mean(fiedl3) , mean(field4)
from measurement
where time >=‘2017-07-27 00:07:00.0’ and time <=‘2017-07-27 01:07:00.0’ and tag1='100’
group by tag2, tag1

what is the problem?