From 74fb15cc7b140fe47671d123b0ce08c0fabbbcda Mon Sep 17 00:00:00 2001 From: Nikita Prokopov Date: Tue, 15 Dec 2020 17:28:45 +0100 Subject: [PATCH] Temporary disable transient indices #373 --- CHANGELOG.md | 4 ++++ src/datascript/db.cljc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f8bd37e..e00e1d56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/datascript/db.cljc b/src/datascript/db.cljc index c1555add..ed4c1193 100644 --- a/src/datascript/db.cljc +++ b/src/datascript/db.cljc @@ -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)) @@ -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]