| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- delete 性能备份AaB from /test/性能AaB_Cache with version
- /**
- onerror(continue,`not exist`,`not find`,`not found`)
- **/
- ;
- delete 性能AaB from /test/性能AaB_Cache with version
- /**
- onerror(continue,`not exist`,`not find`,`not found`)
- **/
- ;
- delete from /test/性能AaB_Cache with version
- /**
- onerror(continue,`not exist`,`not find`,`not found`)
- **/
- ;
- drop class if exists /test/性能AaB_Cache;
- create class if not exists /test/性能AaB_Cache (
- 主机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=cacheonly, autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB_Cache'
- ;
- insert into /test/性能AaB_Cache (id,主机AaB,v_date,v_timestamp) values ('性能AaB_Cache:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
- insert into /test/性能AaB_Cache (id,主机AaB,v_date,v_timestamp) values ('性能AaB_Cache:test2',"服务器2","1754-08-31","1754-08-31 15:55:55");
- select * from /test/性能AaB_Cache where v_date='1754-08-31' refresh
- /**
- output()
- count(1)
- **/
- ;
- select * from /test/性能AaB_Cache where v_timestamp='1754-08-31 15:55:55' refresh
- /**
- output()
- count(1)
- **/
- ;
- create ("性能AaB_Cache:test")-[:connect]->("性能AaB_Cache:test2")
- /**
- output()
- **/
- ;
- create ("性能AaB_Cache:test2")-[:connect]->("性能AaB_Cache:test")
- /**
- output()
- **/
- ;
- select connect from /test/性能AaB_Cache
- /**
- output()
- matchcount("connect",{"_all":["性能AaB_Cache:test"]},1)
- matchcount("connect",{"_all":["性能AaB_Cache:test2"]},1)
- **/
- ;
- select count(*) from /test/性能AaB_Cache 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_Cache where v_date between 1774972800000 and 1776182400000 limit 10
- /**
- output()
- count(1)
- **/
- ;
- select "hello".id from /test/性能AaB_Cache "hello" where v_date between 1774972800000 and 1776182400000 order by "hello".v_date limit 10
- /**
- output()
- count(1)
- **/
- ;
- select * from /test/性能AaB_Cache where v_timestamp between 1774972800000 and 1776182400000 limit 10
- /**
- output()
- count(1)
- **/
- ;
|