fix: slow re-index for large graphs with page-metadata.edn

related to #5547
This commit is contained in:
Tienson Qin
2022-06-13 17:43:24 +08:00
parent b3d01a869b
commit 156b152129
4 changed files with 18 additions and 12 deletions

View File

@@ -268,7 +268,8 @@
(repo-handler/load-repo-to-db! repo
{:diffs diffs
:nfs-files modified-files
:refresh? (not re-index?)}))
:refresh? (not re-index?)
:new-graph? re-index?}))
(when (and (util/electron?) (not re-index?))
(db/transact! repo new-files))))))))