VIEW.CREATEDeclare a composed view over indexes with an ORDER BY (catalog mutation, sidecar-persisted).
| 構文 | VIEW.CREATE name QUERY tree ORDER BY index [DESC] [MODE virtual|materialized] [TOPK k] [VIA template] (tree = '( AND|OR|DIFF sub sub )' | 'index RANGE min max' | 'index EQ value') |
| グループ | view |
| 引数の数 | -8 |
| 導入バージョン | 3.0.0 |
| フラグ | write, extension |
| 計算量 | O(tree size) at the call. A materialized view builds lazily on the next tick (a full eval_tree plus an O(M log M) sort); a virtual view builds nothing, ever |
| Redis 互換性 | kevy-only: no Redis analogue. A view is neither a stored query nor a join — it is a named composition tree over declared indexes that stores membership and order only, never field values |