我收到类似 "Tables cannot have more than 0 materialized views, failed to create materialized view" 的错误
im getting error like "Tables cannot have more than 0 materialized views, failed to create materialized view"
这是我在 Cassandra 中创建 table 时使用的命令。
create table materialed_main (car_make text,car_model text,id int,department text,frist text, last text,primary key(car_make,car_model,id));
这是上述table的物化视图。
create materialized view materialed_view as select * from materialed_main where first is not null and car_make is not null and car_model is not null and id is not null primary key(first,car_make,car_model, id);
但我不确定为什么会收到此错误
Error from server: code=2200 [Invalid query] message="Tables cannot have more than 0 materialized views, failed to create materialized view materialed_view on table materialed_main"
Note: Materialized views are not available on Astra serverless databases. For more, see Astra database limits
第二页说:
Secondary indexes and materialized views are not available for serverless databases. Our team is working to offer materialized views for serverless databases soon
使用 CUSTOM INDEX 而不是 MATERIALIZED VIEW。
Storage-Attached Indexing (SAI)
这是我在 Cassandra 中创建 table 时使用的命令。
create table materialed_main (car_make text,car_model text,id int,department text,frist text, last text,primary key(car_make,car_model,id));
这是上述table的物化视图。
create materialized view materialed_view as select * from materialed_main where first is not null and car_make is not null and car_model is not null and id is not null primary key(first,car_make,car_model, id);
但我不确定为什么会收到此错误
Error from server: code=2200 [Invalid query] message="Tables cannot have more than 0 materialized views, failed to create materialized view materialed_view on table materialed_main"
Note: Materialized views are not available on Astra serverless databases. For more, see Astra database limits
第二页说:
Secondary indexes and materialized views are not available for serverless databases. Our team is working to offer materialized views for serverless databases soon
使用 CUSTOM INDEX 而不是 MATERIALIZED VIEW。 Storage-Attached Indexing (SAI)