搜索
您的当前位置:首页正文

Phoenix 索引重建操作

来源:二三娱乐

有时候我们使用Phoenix创建一个View视图表后,然后在上面创建Index后,在Hbase上Put一条数据后,在Phoenix视图表是查不出数据的,那如何操作才能看到新增加的数据?

使用指南

方式一

drop index ind on "testTable";
create index ind on "testTable"("ext"."userId");

方式二

alter index ind on "testTable" REBUILD;
Top