ALTER MATERIALIZED VIEW RESUME WAL
Materialized View support is in beta.
It may not be fit for production use.
To enable beta materialized views, set cairo.mat.view.enabled=true
in server.conf
, or export the equivalent
environment variable: QDB_CAIRO_MAT_VIEW_ENABLED=true
.
Please let us know if you run into issues.
Either:
- Email us at support@questdb.io
- Join our public Slack
- Post on our Discourse community
ALTER MATERIALIZED VIEW RESUME WAL
restarts
WAL table transactions after resolving errors.
Accepts the same optional sequencerTxn
input as the
ALTER TABLE RESUME WAL
operation. Refer to that page for more details.
Syntax
Example
Use the wal_tables()
function to
investigate the materialized view status:
wal_tables();
name | suspended | writerTxn | sequencerTxn |
---|---|---|---|
trades_1h | true | 3 | 5 |
The trades_1h
view is suspended. The last successful commit is 3
.
The following query restarts transactions from the failed transaction, 4
:
ALTER MATERIALIZED VIEW trades_1h RESUME WAL;
See also
For more information on the concept, see the reference on materialized views.