indexed-view

Is it possible to have an indexed view in MySQL?

自古美人都是妖i 提交于 2019-11-26 20:45:28
I found a posting on the MySQL forums from 2005 , but nothing more recent than that. Based on that, it's not possible. But a lot can change in 3-4 years. What I'm looking for is a way to have an index over a view but have the table that is viewed remain unindexed. Indexing hurts the writing process and this table is written to quite frequently (to the point where indexing slows everything to a crawl). However, this lack of an index makes my queries painfully slow. I don't think MySQL supports materialized views which is what you would need, but it wouldn't help you in this situation anyway.

Is it possible to have an indexed view in MySQL?

两盒软妹~` 提交于 2019-11-26 07:44:22
问题 I found a posting on the MySQL forums from 2005, but nothing more recent than that. Based on that, it\'s not possible. But a lot can change in 3-4 years. What I\'m looking for is a way to have an index over a view but have the table that is viewed remain unindexed. Indexing hurts the writing process and this table is written to quite frequently (to the point where indexing slows everything to a crawl). However, this lack of an index makes my queries painfully slow. 回答1: I don't think MySQL