materialized-views

How to delete a row in cassandra materialiezed view?

匆匆过客 提交于 2021-02-10 05:28:05
问题 I have a cassadra namespace with a table and a materialized view from it. A row got deleted in the base table but the change was not propagated to the materialized view. I don't know the exact reason why this happend. So now I am stuck with that row in the MV and I am not able to delete it. Any ideas? 回答1: Yeah, materialized views are still very much broken. The two main problems are: There isn't a way to know when a MV is out of sync. Once it's out of sync, there really isn't a way to get it

Fast Refresh on commit of materialized view

柔情痞子 提交于 2021-02-06 11:04:17
问题 I just created tables DEPT and EMP like follow : create table DEPT ( dept_no number , dept_name varchar(32) , dept_desc varchar(32), CONSTRAINT dept_pk Primary Key (dept_no) ); create table EMP ( emp_no number, dept_no number, CONSTRAINT emp_pk Primary Key (emp_no,dept_no)); insert into dept values (10,'it','desc1'); insert into dept values (20,'hr','desc2'); insert into emp values (1,10); insert into emp values (2,20); I created materialized view logs on these tables with rowid and

Fast Refresh on commit of materialized view

别来无恙 提交于 2021-02-06 11:02:24
问题 I just created tables DEPT and EMP like follow : create table DEPT ( dept_no number , dept_name varchar(32) , dept_desc varchar(32), CONSTRAINT dept_pk Primary Key (dept_no) ); create table EMP ( emp_no number, dept_no number, CONSTRAINT emp_pk Primary Key (emp_no,dept_no)); insert into dept values (10,'it','desc1'); insert into dept values (20,'hr','desc2'); insert into emp values (1,10); insert into emp values (2,20); I created materialized view logs on these tables with rowid and

ScyllaDB 2.1 - Inconsistency with Materialized View

夙愿已清 提交于 2021-01-27 13:40:00
问题 While deciding on the technology stack for my own product, I decided to go with scyllaDB for database due to it's impressive performance. For local development, I setup Cassandra on my Macbook. Considering ScyllaDB now supports (experimental) MV (Materialized View), it made the development easy. For dev server, I'm running ScyllaDB on Ubuntu 16.04 hosted on Linod. I am facing following issues : After a few weeks, one day when I deleted an entry from base table (from ScyllaDB running on Ubuntu

collecting annual aggregated data for later quick access

流过昼夜 提交于 2020-12-15 20:04:56
问题 I have a number of sql queries which take year as a parameter and generate various annual reports for the given year. Those queries are quite cumbersome and take a considerable amount of time to execute (20 min - 40 min). In order to give my users the ability to view annual report whenever they need to, I am considering to pre-execute these queries and store the results for later use. One solution would be to schedule execution of these queries and insert the results in some temp tables. But

collecting annual aggregated data for later quick access

偶尔善良 提交于 2020-12-15 19:40:19
问题 I have a number of sql queries which take year as a parameter and generate various annual reports for the given year. Those queries are quite cumbersome and take a considerable amount of time to execute (20 min - 40 min). In order to give my users the ability to view annual report whenever they need to, I am considering to pre-execute these queries and store the results for later use. One solution would be to schedule execution of these queries and insert the results in some temp tables. But

collecting annual aggregated data for later quick access

可紊 提交于 2020-12-15 19:40:16
问题 I have a number of sql queries which take year as a parameter and generate various annual reports for the given year. Those queries are quite cumbersome and take a considerable amount of time to execute (20 min - 40 min). In order to give my users the ability to view annual report whenever they need to, I am considering to pre-execute these queries and store the results for later use. One solution would be to schedule execution of these queries and insert the results in some temp tables. But

How to indicate that a column is not nullable when creating a materialized view?

社会主义新天地 提交于 2020-08-27 21:58:41
问题 I am creating a materialized view using the following query: CREATE MATERIALIZED VIEW article_view AS SELECT id, alternative_headline, article_author_id, created_at, description, headline, preview_paragraph_image_id, published_at, updated_at FROM article WHERE published_at IS NOT NULL WITH NO DATA; CREATE UNIQUE INDEX ON article_view (id); I want it to be represented in the materialized-view that the published_at column is not nullable. The reason for wanting to represent the published_at

“Missing table” on materialized view

六月ゝ 毕业季﹏ 提交于 2020-01-23 17:06:46
问题 I have the following entity: @Entity @Table(name = "full_address") public class FullAddress { @Id @Column(name = "guid") private String id; @Column(name = "address") private String address; //getters and setters omitted } Also I create materialized view as follows: CREATE TABLE address_table ( -- address fields, aoid VARCHAR(36), CONSTRAINT address_pk PRIMARY KEY (aoid) ); CREATE MATERIALIZED VIEW full_address AS SELECT buildFullAddressById(addrobj.aoid) AS address, addrobj.aoid AS guid FROM