88.mql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. delete 性能备份AaB from /test/性能AaB with version
  2. /**
  3. onerror(continue,`not exist`,`not find`,`not found`)
  4. **/
  5. ;
  6. delete 性能AaB from /test/性能AaB with version
  7. /**
  8. onerror(continue,`not exist`,`not find`,`not found`)
  9. **/
  10. ;
  11. delete from /test/性能AaB with version
  12. /**
  13. onerror(continue,`not exist`,`not find`,`not found`)
  14. **/
  15. ;
  16. drop class if exists /test/性能AaB;
  17. create class if not exists /test/性能AaB (
  18. 主机AaB varchar,
  19. 性能备份AaB bucket {
  20. "dict": true,
  21. "slot": 5,
  22. "ttl": 2,
  23. "type": "promdb",
  24. "version": 1
  25. },
  26. noindex varchar,
  27. 性能AaB bucket {
  28. "dict": true,
  29. "slot": 5,
  30. "ttl": 2,
  31. "type": "promdb",
  32. "version": 1
  33. },
  34. keys(主机AaB),
  35. indexes(主机AaB )
  36. )with autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
  37. ;
  38. cql: select * from field where namespace='test' and name in ('主机aab','noindex')
  39. /**
  40. match("name", "主机aab", "isindex", 1)
  41. match("name", "noindex", "isindex", 0)
  42. **/
  43. ;
  44. drop class if exists /test/性能AaB;