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 two stages:- Draft: the query you are actively editing, by hand or via the AI. Unsaved changes show as a diff against the published query. See Draft and 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 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.
- Transformations, transform results without more SQL.
- Privacy, private vs. shared datasets.
- Managing datasets, rename, delete, duplicate.
