Saved Queries Management

Learn how to save queries in Draxlr, organize them into folders, edit, move, duplicate or delete them, find unused queries, and search to find any query fast.

Draxlr allows you to organize your saved queries into multiple folders for easy management and quick access. This is especially useful for users who work with a large number of queries and want to categorize them by use case, project, or team.


Finding Your Saved Queries

Open Browse Data from the left menu. The Saved Queries panel shows your folders on the left and the queries in the selected folder on the right.

  • Folders: Every database has a Default folder, plus any folders you create. Each folder shows how many queries it holds.
  • Unused queries: Lists the queries that aren't used in any dashboard or automation, which makes it easy to clean up.
  • Queries: Each row shows:
    • An icon telling you whether it's a Query Builder or Raw Query query
    • The query name. Hover over a dashed name to see its description.
    • The tables it uses. Hover over +1, +2 and so on to see the rest.
    • Icons to edit, duplicate or delete the query

Click a query to open it.

Searching

Type in Search Queries to filter queries by name across all folders. Folders with matching queries are highlighted with the number of matches, and the others are dimmed. Click the × in the search box to clear it.

You can also move around with the keyboard: use the arrow keys to move between folders and queries, and press Enter to open one.


How to Save a Query?

  1. Build a query with the Query Builder or Raw SQL.
  2. Click Save Query at the top right.
  3. In the Save Query dialog, fill in:
    • Query name
    • Query description (optional)
    • Folder: Pick a folder, or click Create a new folder.
    • Add to Dashboard (optional): Turn it on and pick a dashboard to add the query to it right away.
  4. Click Save Query.

When you click Save Query on a query that's already saved, the dialog opens as Update Query and saves your changes over the original. Turn on Save as new? to keep the original and save a copy instead.


How to Manage Folders?

Create a Folder

  1. Click Add Folder below the folder list.
  2. Type a name in the Folder name field.
  3. Click Add folder.

You can also create a folder from the Save Query dialog with Create a new folder.

Rename or Delete a Folder

Hover over a folder to see its edit and delete icons.

  • Rename: Click the edit icon, change the name, and save.
  • Delete: Click the delete icon and confirm. Only empty folders can be deleted, so move or delete their queries first.

The Default and Unused queries folders can't be renamed or deleted.


Perform Actions on a Saved Query

Each saved query supports the following actions. Members with read-only access don't see these icons.

1. Edit Saved Query Details

Click the edit icon to open Edit Saved Query, where you can:

  • Change the Query Name.
  • Add or change the Query Description (optional).
  • Move the query to another folder with Query Folder.

Click Update to save changes.

2. Duplicate a Saved Query

Click the duplicate icon to open Duplicate Query:

  • Query Name: Defaults to the original name with (Copy) at the end.
  • Target Database: Shown when you have more than one database. Pick another database to copy the query there. This works best when that database has the same tables and columns.
  • Target Folder: Choose the folder for the copy.

Click Duplicate to create the copy.

3. Delete a Saved Query

Click the delete icon, then click Delete in the Delete query? dialog.

This can't be undone:

Deleting a saved query also removes any dashboard item or automation connected to it. Check the Unused queries folder to find queries that are safe to delete.