mirror of
https://github.com/logseq/logseq.git
synced 2026-05-23 20:24:15 +00:00
fix: unit test, lint + script
This commit is contained in:
committed by
Tienson Qin
parent
7e8ab72494
commit
b1bcc1b2dd
@@ -68,8 +68,8 @@
|
||||
blocks-tx (create-graph/create-blocks-tx (create-init-data options))]
|
||||
(println "Built" (count blocks-tx) "tx," (count (filter :block/name blocks-tx)) "pages and"
|
||||
(count (filter :block/content blocks-tx)) "blocks ...")
|
||||
;; Vary the chunking with page size for now
|
||||
(let [tx-chunks (partition-all (:pages options) blocks-tx)]
|
||||
;; Vary the chunking with page size up to a max to avoid OOM
|
||||
(let [tx-chunks (partition-all (min (:pages options) 30000) blocks-tx)]
|
||||
(loop [chunks tx-chunks
|
||||
chunk-num 1]
|
||||
(when-let [chunk (first chunks)]
|
||||
|
||||
Reference in New Issue
Block a user