Skip to content

Materialize view purging or lifespan #9541

Answered by lmatz
mans2singh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mans2singh,

by expiring the materialized view, do you want to see that the data being materialized in the view is always restricted to a recent period of time, or do you want to see that this materialized view gets dropped after XX minutes?

The first one is supported by temporal filters: https://www.risingwave.dev/docs/current/sql-pattern-temporal-filters/
The examples in the doc also applies to create materialized view XXX as select ...;

We don't support the second one right now. I would recommend doing it out of RW, e.g. from a client to the database. Set a cron job etc.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yingjunwu
Comment options

@mans2singh
Comment options

Answer selected by mans2singh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants