Creating a dataset
- Navigate to Datasets in the sidebar.
- Click New dataset.
- Select the datasource you want to query.
- Write your SQL in the editor.
- Press Cmd+Enter to preview results.
- Press Cmd+S to save and publish.
Dataset lifecycle
Datasets go through three stages:- Draft — the query you are actively editing.
- Suggested — a query proposed by the AI, shown as a diff you can accept or reject. See Draft, suggest, publish.
- Published — the saved query. Publishing runs the query against your database and materializes the results so charts can display them.
What happens when you publish
When you save a dataset, Mora runs the query in the background and stores the results. This means:- Charts load instantly from the materialized data, not from a live query every time.
- You can apply Rift transformations (group, aggregate, filter, sort) without hitting your database again.
- Published results are updated each time you save.
Related
- SQL editor — writing and running queries.
- Rift transformations — transform results without more SQL.
- Privacy — private vs. shared datasets.
- Managing datasets — rename, delete, duplicate.