mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
fix: set loading per-length to 1000 to make UI responsive
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
(defn- restore-other-data-from-sqlite!
|
||||
[repo data uuid->db-id-map]
|
||||
(let [start (util/time-ms)
|
||||
per-length 10000
|
||||
per-length 1000
|
||||
conn (db-conn/get-db repo false)
|
||||
*data (atom (group-by #(gobj/get % "page_uuid") data))
|
||||
unloaded-pages (keys @*data)
|
||||
@@ -242,7 +242,8 @@
|
||||
(d/conn-from-datoms datoms db-schema/schema))
|
||||
_ (swap! db-conn/conns assoc db-name db-conn)
|
||||
end-time (t/now)]
|
||||
(println :restore-graph-from-sqlite!-prepare (t/in-millis (t/interval start-time end-time)) "ms")
|
||||
(println :restore-graph-from-sqlite!-prepare (t/in-millis (t/interval start-time end-time)) "ms"
|
||||
" Datoms in total: " (count datoms))
|
||||
|
||||
;; (util/profile :restore-graph-from-sqlite!-transact (d/transact! db-conn tx-data))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user