|
@@ -41,7 +41,7 @@ create class if not exists /test/性能AaB (
|
|
|
},
|
|
},
|
|
|
keys(主机AaB),
|
|
keys(主机AaB),
|
|
|
indexes(主机AaB )
|
|
indexes(主机AaB )
|
|
|
-)with autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
|
|
|
|
|
|
|
+)with core=cassandraonly, autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
|
|
|
;
|
|
;
|
|
|
|
|
|
|
|
insert into /test/性能AaB (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
|
|
insert into /test/性能AaB (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
|
|
@@ -59,6 +59,19 @@ match("name", "noindex", "isindex", 0)
|
|
|
**/
|
|
**/
|
|
|
;
|
|
;
|
|
|
|
|
|
|
|
|
|
+-- sleep 3s or select with refresh for wait lucene index reday
|
|
|
|
|
+/**
|
|
|
|
|
+sleep(3s)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+select * from /test/性能AaB where v_date between '2026-04-02' and '2026-04-03' limit 10
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(1)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
select * from /test/性能AaB where v_date between 1774972800000 and 1776182400000 limit 10
|
|
select * from /test/性能AaB where v_date between 1774972800000 and 1776182400000 limit 10
|
|
|
/**
|
|
/**
|
|
|
output()
|
|
output()
|
|
@@ -66,6 +79,13 @@ count(1)
|
|
|
**/
|
|
**/
|
|
|
;
|
|
;
|
|
|
|
|
|
|
|
|
|
+select * from /test/性能AaB where v_timestamp between '2026-04-02 00:00:00.000' and '2026-04-03 00:00:00.000' limit 10
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(1)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
select * from /test/性能AaB where v_timestamp between 1774972800000 and 1776182400000 limit 10
|
|
select * from /test/性能AaB where v_timestamp between 1774972800000 and 1776182400000 limit 10
|
|
|
/**
|
|
/**
|
|
|
output()
|
|
output()
|