Dashboard Loading Time - version 7.5.4

Hi,
I am using Grfana V 7.5.4 with MySQL.
Database having 5 mil records and panel is set for 6 Hours data with every 5 min data refreshing. However loading itself taking too much time (More than 45 Min)
Please suggest:
Hardware is :RaspberryPI 4 B - 8 GB RAM
OS: Rasbian
Database: MySQL

Hi @reachrao01

I have to ask: what query are you writing? and just how much data are you trying to pull in at one time?