v.19.14Experimental Feature
Implementation of LIVE VIEW Tables That Were Originally Proposed in #2898, Prepared in #3925, and Then Updated in #5541
Implementation ofLIVE VIEWtables that were originally proposed in #2898, prepared in #3925, and then updated in #5541. See #5541 for detailed description. #5541 (vzakaznikov) #6425 (Nikolai Kochetov) #6656 (vzakaznikov) Note thatLIVE VIEWfeature may be removed in next versions.
Why it matters
TheLIVE VIEW feature solves the problem of needing real-time or continuously refreshed view results without manually triggering refreshes. It enables users to automatically monitor and interact with constantly updated query results, improving observability and ease of use for live data streams.How to use it
Create aLIVE VIEW table by specifying the LIVE VIEW engine in the CREATE TABLE statement, followed by a query. For example:CREATE LIVE VIEW view_name AS
SELECT ... FROM ...;The view will then continuously refresh its result set automatically.