Skip to content

Commit a30b7cd

Browse files
committed
Helper queries
1 parent c5fe35b commit a30b7cd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/billion_cells/src/app/main.clj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@
398398
{:update :chunk
399399
:set {:chunk [:lift new-chunk]}
400400
:where [:= :id chunk-id]}))
401-
402401

403402
(defn ctx-start []
404403
(let [{:keys [writer reader]}
@@ -448,6 +447,14 @@
448447

449448
(def db (-> (h/get-app) :ctx :db))
450449

450+
451+
452+
453+
(d/q db {:select [[[:count [:distinct :sid]]]]
454+
:from :tab})
455+
;; 4677
456+
457+
451458
,)
452459

453460
;; focus element

examples/billion_checkboxes_blob/src/app/main.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@
466466
(d/table-info db :chunks)
467467
(d/table-list db)
468468

469+
;; (+ 7784 3249)
470+
469471
,)
470472

471473
(comment

0 commit comments

Comments
 (0)