|
|
@@ -1,95 +0,0 @@
|
|
|
-
|
|
|
-delete 性能备份AaB from /test/性能AaB_MemDB with version
|
|
|
-/**
|
|
|
-onerror(continue,`not exist`,`not find`,`not found`)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-delete 性能AaB from /test/性能AaB_MemDB with version
|
|
|
-/**
|
|
|
-onerror(continue,`not exist`,`not find`,`not found`)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-delete from /test/性能AaB_MemDB with version
|
|
|
-/**
|
|
|
-onerror(continue,`not exist`,`not find`,`not found`)
|
|
|
-sleep(3s)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-drop class if exists /test/性能AaB_MemDB;
|
|
|
-
|
|
|
-create class if not exists /test/性能AaB_MemDB (
|
|
|
- 主机AaB varchar,
|
|
|
- v_date date,
|
|
|
- v_timestamp timestamp,
|
|
|
- 性能备份AaB bucket {
|
|
|
- "dict": true,
|
|
|
- "slot": 5,
|
|
|
- "ttl": 2,
|
|
|
- "type": "promdb",
|
|
|
- "version": 1
|
|
|
- },
|
|
|
- noindex varchar,
|
|
|
- 性能AaB bucket {
|
|
|
- "dict": true,
|
|
|
- "slot": 5,
|
|
|
- "ttl": 2,
|
|
|
- "type": "promdb",
|
|
|
- "version": 1
|
|
|
- },
|
|
|
- keys(主机AaB),
|
|
|
- indexes(主机AaB )
|
|
|
-)with core=memory, autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB_MemDB'
|
|
|
-;
|
|
|
-
|
|
|
-insert into /test/性能AaB_MemDB (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
|
|
|
-select count(*) from /test/性能AaB_MemDB where 主机AaB='服务器1'
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-cql: select * from field where namespace='test' and name in ('主机aab','noindex')
|
|
|
-/**
|
|
|
-match("name", "主机aab", "isindex", 1)
|
|
|
-match("name", "noindex", "isindex", 0)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-select * from /test/性能AaB_MemDB where v_date between 1774972800000 and 1776182400000 limit 10
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-select * from /test/性能AaB_MemDB where v_timestamp between 1774972800000 and 1776182400000 limit 10
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-{"sql":"select * from /test/性能AaB_MemDB where v_date between 1774972800000 and 1776182400000 limit 10"}
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-{"sql":"select "order".id from /test/性能AaB_MemDB "order" where v_date between 1774972800000 and 1776182400000 limit 10"}
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|
|
|
-
|
|
|
-{"sql":"select * from /test/性能AaB_MemDB where v_timestamp between 1774972800000 and 1776182400000 limit 10"}
|
|
|
-/**
|
|
|
-output()
|
|
|
-count(1)
|
|
|
-**/
|
|
|
-;
|