Skip to content

Commit

Permalink
Temporary disable transient indices #373
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Dec 15, 2020
1 parent 5907dd6 commit 74fb15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# WIP

- Temporary disable transient indices #373

# 1.0.2

- Fixed db diffs with different types of the same attribute #369 #372 thx @darkleaf
Expand Down
4 changes: 2 additions & 2 deletions src/datascript/db.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@
(raise "Bad transaction data " initial-es ", expected sequential collection"
{:error :transact/syntax, :tx-data initial-es}))
(let [initial-report' (-> initial-report
(update :db-after transient))
#_(update :db-after transient))
has-tuples? (not (empty? (-attrs-by (:db-after initial-report) :db.type/tuple)))
initial-es' (if has-tuples?
(interleave initial-es (repeat ::flush-tuples))
Expand All @@ -1311,7 +1311,7 @@
(check-value-tempids)
(update :tempids assoc :db/current-tx (current-tx report))
(update :db-after update :max-tx inc)
(update :db-after persistent!))
#_(update :db-after persistent!))

:let [[entity & entities] es]

Expand Down

0 comments on commit 74fb15c

Please sign in to comment.