Count rows for view #12791
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi there, It looks like that the SHOW FULL VIEWS; You can almost think the NON-materialized views as a reusable template to be used in other materialized views. The NON-materialized views do not actually process any data. What you can do is create a materialized view with the following: CREATE MATERIALIZED VIEW market_orders_count AS SELECT count(*) FROM public.market_orders; The above will create a materialized view called For more information on materialized views and how they work, I would suggest the following documentation: https://materialize.com/docs/sql/create-materialized-view/ In case that you want to learn more about the non-materialized views, you can check out the following: https://materialize.com/docs/sql/create-view/ Hope that this helps and let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
-
yes its VIEW (non mater).
|
Beta Was this translation helpful? Give feedback.
-
@bobbyiliev with time: |
Beta Was this translation helpful? Give feedback.
Hi there,
It looks like that the
market_orders
view is not materialized. You can verify this with the following query:You can almost think the NON-materialized views as a reusable template to be used in other materialized views. The NON-materialized views do not actually process any data.
What you can do is create a materialized view with the following:
The above will create a materialized view called
market_orders_count
which will contain the result of your query and the results will be incrementally updated as the data changes.For more information on materialized views and how t…