Metabase model persistence

Metabase model persistence copies model results into your warehouse so dashboards read a precomputed table. It has real constraints, and Metabase now recommends transforms instead, so plan the choice before you build on it.

On this page

When Metabase model persistence speeds up dashboards and when it does not

If your Metabase dashboards are slow because they sit on heavy models, the first question is whether persisting those model results will help. Model persistence stores a model's query results as a table in your data warehouse, so dashboard cards built on that model read the stored table instead of rerunning the underlying query each time someone opens the dashboard. According to the Metabase model persistence docs, Metabase refreshes that table on a schedule you set. The trade-off is that the data is only as current as the last refresh, and the refresh itself is a recurring query load on the warehouse. Before you enable it, confirm that the slowness comes from the model's query, not from the number of cards, concurrent viewers or a permissions setup that blocks caching.

Persistence tends to help teams whose many dashboards share one expensive model, such as a wide join across fact tables that is recalculated for every viewer, and whose data can tolerate a refresh interval measured in hours rather than seconds. It helps less when the model is cheap but the dashboard has dozens of cards, when viewers need near-real-time figures, or when the model's data is governed by row-level permissions, which the persisted copy does not follow. Persistence also depends on the database you use, so check the supported list in the docs before planning. Note that Metabase recommends transforms instead of model persistence. Persistence remains supported for now but will be deprecated, so treat it as a short-term fix and plan for the move to transforms, covered below, before you build a large set of dependencies on it.

How a persisted model moves from source query to dashboard

The flow starts with source databases that a Metabase model queries. On a schedule, Metabase runs that model query and writes the result as a table into a dedicated schema in the warehouse. The application database records which model is persisted and where its table lives, and dashboards then read the stored table instead of re-running the source query. The check to make is that the write schema is the only place Metabase writes, and that the people who can read it are the same people allowed to see the underlying data.

Persisted model results flow from source queries into a warehouse table that dashboards read.

Model persistence compared with caching, transforms and plain models

This table compares plain models, cached results, model persistence and transforms on where data is stored, who controls refresh, how row-level permissions apply and deprecation status. Read each row against your own warehouse and permission design, and confirm database support before choosing persistence.

OptionWhere results are storedRefresh control and row-level permissionsDeprecation status
Plain modelNot stored; the query runs against the source database each time a dashboard loadsRuns under the viewer's data permissions when queried, so row-level restrictions apply at query timeNot affected
Cached resultsStored in the Metabase application database as cached query resultsRefresh follows the caching policy for the question, dashboard or database; check that permission setups do not block refreshNot affected
Model persistenceWritten as tables in a schema in your warehouse, separate from the source tablesRefresh is scheduled by an administrator; persisted tables sit outside the source row-level rules, so confirm access design before useSupported for now, but Metabase recommends transforms and says it will be deprecated
TransformsWritten as tables in your warehouse by a pipeline defined in MetabaseRefresh is set by the transform schedule; confirm how permissions on output tables are granted to viewersRecommended by Metabase as the replacement for model persistence
Database supportConfirm whether your warehouse is supported for model persistence and for transforms in the current versionConfirm the write account needs a dedicated schema and privileges in your environmentCheck the Metabase model persistence documentation before planning new work

Which warehouses and refresh settings to confirm before you enable it

Model persistence depends on three things: what your warehouse engine and Metabase version support, how often the stored results refresh, and what the Metabase connection is allowed to write. Confirm each one in your own environment before you turn persistence on for a production model.

Warehouse engine support for your version

Persistence writes model results into a schema in your warehouse, so the engine behind each connected database must support it in the Metabase version you run. Support differs by engine and release, so do not assume a database that works for queries also works for persistence. Check the supported list in the model persistence documentation for your exact version, and test on a non-production database first.

Model persistence docs

Refresh schedule options

Each persisted model refreshes on a schedule, and the refresh is what determines how current a dashboard is. Decide how stale a model may be before a business user notices, then confirm which schedule options your version offers. Refresh runs also consume warehouse compute, so align them with off-peak windows and with the load you already measure on the warehouse.

Write permissions for the Metabase connection

The Metabase database connection needs permission to create and replace tables in the schema where persisted results are written. Confirm the exact grants your engine requires with your database administrator, and limit them to that schema rather than broad write access to production databases. Record who approved the grant, since it changes what the Metabase service account can modify.

Dedicated write schema

Persisted tables should live in a schema that holds only Metabase output, so analysts and automated jobs do not confuse them with source data. Ask your data team to name the schema, set its owner, and decide how long orphaned tables are kept after a model is retired. A clear schema boundary also makes access reviews and cleanup straightforward.

Row-level permission conflicts

Persistence is not compatible with row-level permissions on the underlying data, so a model that relies on them cannot be persisted as-is. Review every model you plan to persist for row or column restrictions, and confirm the behavior against the current documentation for your edition. Plan an alternative access design for affected models before enabling anything.

Transforms as the longer-term path

Metabase recommends transforms over model persistence. Persistence remains supported for now but is expected to be deprecated, so a new build should ask whether a transform can produce the same table. Confirm with your Metabase contact or the current docs whether your planned models should start as transforms before you invest in persistence setup.

How to set up model persistence on a self-hosted Metabase

This sequence turns on model persistence for one model in a self-hosted Metabase, so its results are stored as a table in your warehouse and refreshed on a schedule. Each step ends with a check you can run before moving on, and the first run should happen on a test instance.

  1. Confirm the Metabase version and application database

    The Metabase administrator records the running version from the admin area and checks it against the version support page, so the team knows whether the release is LTS or monthly and when it reaches end of life. Confirm the application database is PostgreSQL, MySQL or MariaDB rather than the embedded H2 database, which is meant for demos. Take a backup of the application database before changing settings. Done when the version, database type and a recent backup file are written down and the backup restores in a test environment.

  2. Confirm the warehouse and write schema

    The data platform team picks the warehouse connection that will hold persisted tables and names a dedicated schema for them, separate from source schemas. A database administrator confirms that the connection user can create and drop tables in that schema. Ask the vendor or your DBA which privileges the connection user needs for your warehouse, since the exact grants vary by platform. Done when a test table can be created and dropped in the schema using the same connection credentials Metabase uses.

  3. Enable persistence for the database and choose a model

    A Metabase administrator turns on model persistence for the chosen database in the admin settings, then picks one model to start with. Good candidates are models that many dashboards query, have a stable definition, and do not depend on row-level permissions, because persisted models are not compatible with row-level permissions. Confirm the exact settings location in the docs for your version. Done when the database shows persistence as enabled and the chosen model is listed as eligible.

  4. Persist the chosen model

    The model owner opens the model's actions and selects the option to persist it. Metabase runs the model query and writes the result to a table in the write schema. Before anyone relies on it, the owner compares the row count and a few sample values with a live run of the model query. Done when the model shows as persisted and the table with the expected name exists in the write schema with the same row count as the live query.

  5. Set the refresh schedule

    The model owner and the platform team agree how fresh the persisted table must be, then set a refresh schedule that matches it. Schedule refreshes outside peak warehouse hours where possible, since each refresh runs the full model query against the warehouse. Record who owns the schedule and what happens if a refresh fails. Done when the last refresh timestamp updates at the scheduled time, and a manual refresh completes without errors.

  6. Verify that dashboards read the persisted table

    Open a dashboard that uses the model and confirm the figures match the live model results. Then check the warehouse query history or the Metabase query log to confirm the queries read the persisted table, not the underlying source tables. Test with a non-admin user to confirm access works under the group permissions you already use. Done when the figures match and the warehouse history shows reads from the persisted table.

  7. Document the rollback path and plan the move to transforms

    To roll back, an administrator turns persistence off for the model, and dashboards return to running the live model query. The persisted table remains in the warehouse until someone drops it, so record that cleanup step. If persistence was set up during an upgrade, restoring the pre-upgrade application database backup is the recommended rollback. Metabase recommends transforms instead of model persistence and says persistence will be deprecated, so plan a path to transforms as part of the record. Done when the rollback steps are written, tested once on a test instance, and linked to the migration plan.

Why persisted models conflict with row-level permissions

A persisted model stores one result set in the warehouse, so the table that dashboards read is the same for everyone who opens them. Live questions in Metabase apply row-level permissions at query time, filtering each viewer's rows against their group's access. A stored table does not run that per-user filter in the same way, which means the persistence layer can expose rows that a live query would have hidden. Treat this as a design conflict to test, not a setting to flip.

Row-level and column-level permissions are features the Metabase pricing page places in the Pro and Enterprise plans, not in Open Source or Starter. Teams on those paid plans that rely on sandboxed or filtered access should decide, before enabling persistence on any model built from that data, whether the stored copy respects each viewer's restrictions. Build a test with two users in different permission groups, persist the model, and check whether the rows and columns each user sees match what live queries return. Repeat the check after each refresh.

Confirm the current behavior with the Metabase model persistence documentation and your Metabase version before you rely on any answer here, since this area of the product is changing. If a model sits on restricted data, the safer options are to keep it unpersisted, restrict the persisted table with warehouse-level permissions, or split models so that only unrestricted data is stored. Record the decision and the test results so that an access review can trace why persistence is or is not used for that data.

Security and operational risks of persisted model data

Persisting a model writes real tables into your warehouse, so the risks move from Metabase's application database into the warehouse itself. The cards below cover the write grant, who can read the output, how stale or orphaned tables accumulate, refresh failures, and how these tables should appear in your access reviews.

Write grant on the warehouse connection

Model persistence needs the database connection Metabase uses to create and replace tables in a chosen schema. Check whether that connection is shared with ordinary querying, because a single account that can both read production data and create tables widens what a compromised or misconfigured Metabase instance can change. Confirm the exact privileges your warehouse requires for this feature and whether they can be limited to one write schema.

Read access to persisted tables

A persisted model is a copy of query results, and it is readable by anyone the warehouse grants access to, which may be broader than the Metabase permissions that governed the original question. Row-level restrictions applied in Metabase do not carry over to the table. Decide who may read the write schema directly, and test that a user blocked in Metabase cannot reach the same rows through another tool.

Retention and orphaned tables

Each persisted model leaves a table behind, and deleted or retired models can leave tables that nothing refreshes but people can still query. Stale numbers can then be read as current figures on other reports. Set an owner and a removal step for each persisted table, and confirm in your environment how Metabase handles the table when a model is deleted or its persistence is turned off.

Refresh failures and stale data

A refresh can fail on a permission change, a dropped column, a warehouse outage or a query timeout, and the dashboards built on the old table keep showing the last successful result. Monitor refresh outcomes in the Metabase logs and set an alert for models that have not refreshed within the window your business expects. Document which dashboards depend on which model so a failure can be traced to its consumers.

Refresh schedule load on the warehouse

Each refresh runs the full model query against the warehouse under the Metabase connection, on a schedule you chose. Frequent refreshes of large models can compete with production workloads, and the cost is recurring rather than one-time. Review the refresh times against warehouse peak periods and record which team owns the compute budget for them.

Persisted tables in access reviews

Persisted tables are data assets that exist outside Metabase's own permission model, so they belong in the same access reviews as other warehouse schemas. Include the write schema, the Metabase service account, and the list of human readers in each review cycle. Ask whether your reviewers can see which persisted tables exist and who created them, because the Metabase interface alone may not show a complete inventory.

Questions buyers ask before using model persistence

Can we enable model persistence ourselves without a partner?

Yes, if your team already runs Metabase and has warehouse access, enabling persistence for a handful of models is a configuration task an administrator can carry out. The harder part is deciding which models to persist, giving Metabase a dedicated write schema with the right grants, and checking that refresh schedules do not collide with peak warehouse load. Teams that have many models, strict permissions, or a plan to move to transforms usually find that the design work takes longer than the switch itself. Confirm your Metabase edition, your database type and your write permissions before you start, and read the model persistence documentation for the current setup steps.

What drives the effort for a model persistence project?

Effort rises with the number of models to persist, the number and type of warehouses involved, and how much the permission design has to change. Each persisted model adds a table to a write schema, a refresh schedule and a check that its results match the source question. Permission design is often the largest driver: persisted models do not work with row-level permissions, so any model that serves restricted data needs a different answer. Migration to transforms adds work if you want to retire persistence on a timeline. Ask any provider to break the quote down by these four drivers.

Does model persistence work with row-level permissions?

No. Metabase's model persistence does not work with row-level permissions, so a persisted model cannot safely serve data that different users should see in different rows. Row and column level permissions are available only on the Pro and Enterprise plans, according to Metabase's pricing page, but the restriction on persisted models applies to the feature itself. Plan for models that carry row-level restrictions to stay unpersisted, or to be rebuilt as transforms with the access control applied in a way your team has reviewed. Confirm the current behavior in the Metabase documentation before you finalize the design.

Is model persistence available in the open source edition?

Metabase's pricing page places row and column level permissions, SSO and usage analytics and auditing in the Pro and Enterprise plans, not in Open Source or Starter. Whether model persistence itself is gated by edition is something to confirm directly, because the supplied material does not settle it. Check the feature against the edition you run before planning, and ask your Metabase contact or check the pricing and documentation pages for the current position. Remember that the permission gap matters for persistence anyway, since persisted models and row-level permissions do not mix.

What does the work need from our data and security teams?

Your data team needs to name the models worth persisting, confirm the warehouse schema that will hold results and agree on refresh timing with the owners of the source tables. Your security team needs to review which grants Metabase receives on the write schema, how persisted results are classified and whether any persisted model exposes data that row-level rules would normally hide. Both teams should agree on who owns a refresh failure and how stale results are flagged to viewers. Involving these teams before configuration avoids rework when a permission review later finds a model it cannot approve.

How long does a scoped model persistence engagement take?

Duration depends on the number of models, the state of your permission design and whether the work includes a move to transforms. Small scopes with clean permissions take far less time than scopes that need a permission redesign, a warehouse review and parallel validation of results. No duration is given here because the supplied material does not provide one. The reliable way to get a figure is a written scope listing the models, warehouses, permission changes and deliverables, after which DeployOpen would agree timelines in writing before work starts. Ask any provider for the same breakdown so you can compare quotes on equal terms.

Should we move from model persistence to transforms now?

Metabase recommends transforms instead of model persistence. Persistence remains supported for now but will be deprecated, so new work is better planned around transforms, while existing persisted models can continue to run until you migrate them. Moving early avoids rebuilding a persistence setup later, but it adds design work up front and needs warehouse-side ownership of the pipelines. Decide based on how many models you run, how often their sources change and whether your data team already operates scheduled transformations. Confirm the current deprecation timing in Metabase's documentation before setting a migration date.

How DeployOpen scopes Metabase model persistence work

DeployOpen scopes model persistence in writing before any work starts, so the warehouse write path and the people who depend on it are agreed up front. The first step is an inventory of persisted models: every model with persistence turned on, the database it writes to, the schema it lands in, its refresh schedule, and the dashboards and questions that read from it. The inventory also records models that were persisted but are no longer used, since each one is a recurring warehouse load with no consumer. Teams should confirm in their own instance which models exist and who owns each one before the scope is drafted, because that list drives the size of the rest of the work.

The second part of the scope is a permission review and a warehouse write design. Persistence runs under the credentials of the database connection Metabase uses, so the review checks which account writes the persisted tables, which schemas it can create tables in, and whether that account can also read source data that row-level permissions are meant to restrict. Metabase's own model persistence documentation notes that persistence does not work with row-level permissions, so models built on restricted data need a documented decision. The write design covers the target schema, naming, access grants for downstream readers, and retention of old persisted tables.

Where persistence is no longer the right tool, the scope includes a transforms migration plan. Metabase recommends transforms over model persistence and says persistence remains supported for now but will be deprecated, so the plan maps each persisted model to a transform, its schedule, and its owner, and sets an order for cutover. The handover closes the engagement with documentation covering the final model inventory, permission decisions, refresh schedules, the write schema, and the runbook for failed refreshes. DeployOpen does not publish prices, and a quote follows from the written scope, so the inventory and permission findings are the inputs that determine what the quote covers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.