Loki dashboard makes excessive amount of queries

Hi,

I have Loki running and have made some dashboards which query data from it. The panels on dashboards seems to make a lot of queries to loki. I can see from Docker Loki logs and browser network tab that it creates one query for every day of the time range, so for one year it creates 365 queries. Even though the amount of data is not very high (4500 log rows for the whole year), this one year query takes a lot of time. One query takes about 200 milliseconds (when inspected from browset network tab), so 365 * 200ms = 73 seconds for this small amount of data.
Is there a way to change this behaviour?

This was solved with editing grafana configuration, had to turn off lokiQuerySplitting from grafana.ini too. Had already edited configuration from Loki side regarding splitting queries.