all-things-risingwave
Why is there no significant improvement in query speed after adding indexes to materialized views?
I added indexes to materialized views, but there is no significant improvement in query speed compared to views that are not indexed. What could be the reason for this?
ji
jie
Asked on Jun 09, 2022
- Indexes in materialized views are not the same as ordinary indexes in general database systems. They are specifically used for joins, not point selects.
- Max and min aggregations have a different implementation compared to other aggregators. They store all input data in a state store, which can affect query performance.
- Materialized views do support deleting data, but it is not well-documented yet.
- Consider using the append-only source feature to reduce the state size for min and max aggregations in materialized views.
Jun 13, 2022Edited by