From cff49b6df5702087ad9c9f10a768c8626f268b63 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Wed, 17 Aug 2016 11:21:50 -0700 Subject: [PATCH] Initialize the sqlite connection with WAL and foreign keys. This somewhat improves performance, which is nice. --- src/datomish/db_factory.cljc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/datomish/db_factory.cljc b/src/datomish/db_factory.cljc index a8850d92..589a5484 100644 --- a/src/datomish/db_factory.cljc +++ b/src/datomish/db_factory.cljc @@ -67,9 +67,20 @@ [(<-SQLite (:attr row)) (<-SQLite (:value row))]) rows))])) (into {}))))) +(defn