Query History
Query History
Every query you run is saved automatically in your query history. This makes it easy to re-run previous questions, track what your team is asking, and build a library of useful queries.
Accessing History
Click the History icon in the sidebar or press Ctrl+H (Windows/Linux) or Cmd+H (Mac). You will see a reverse-chronological list of all queries.
Each history entry shows:
- The natural language question
- The generated SQL
- When it was run
- How long it took
- The number of rows returned
Searching History
Use the search bar at the top of the history panel to find past queries by keyword. You can search by the question text, the SQL content, or the table names involved.
Favorites
Click the star icon on any history entry to favorite it. Favorites appear in a separate tab for quick access. This is useful for queries you run regularly but do not want to add to a dashboard.
Re-running Queries
Click Re-run on any history entry to execute it again with live data. The original question is preserved, but the results will reflect the current state of your database.
Team History
On Pro and Enterprise plans, admins can view team-wide query history in Settings > Team > Query History. This helps identify popular questions and potential dashboard candidates.
Retention
Query history is retained for 90 days on the Free plan and indefinitely on Pro and Enterprise. You can export your history as CSV from the settings page.