Add caching example to Seattle fixture.
This commit is contained in:
parent
f42ae35b70
commit
a0c70a7cd9
1 changed files with 8 additions and 0 deletions
|
@ -18,3 +18,11 @@
|
|||
.q [:find ?n . :where [(fulltext $ :community/name "Wallingford") [[?e ?n]]]]
|
||||
|
||||
.q [:find [?when ...] :where [_ :db/txInstant ?when] :order (asc ?when)]
|
||||
|
||||
.cache :neighborhood/name reverse
|
||||
.cache :neighborhood/district forward
|
||||
|
||||
.q [:find ?district :where
|
||||
[?neighborhood :neighborhood/name "Beacon Hill"]
|
||||
[?neighborhood :neighborhood/district ?d]
|
||||
[?d :district/name ?district]]
|
||||
|
|
Loading…
Reference in a new issue