How much data is stored in Grafana.db?

I am wondering how much data is stored in grafana.db? Let’s say I have a query that gets data for a days worth. If I refresh the page every second does it call the query every second or does the original call’s data gets stored locally and proceeding calls call it locally? How can i configure that?