We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba685c commit d4fd4c9Copy full SHA for d4fd4c9
benchmark/src/benchmark/measure.clj
@@ -15,8 +15,8 @@
15
16
(defn init-db [config]
17
(d/delete-database config)
18
- (d/create-database config)
19
- (d/connect config))
+ (let [config (d/create-database config)]
+ [(d/connect config) config]))
20
21
(defn init-tx [entity-count conn]
22
(when (= :write (get-in @conn [:config :schema-flexibility]))
@@ -98,7 +98,7 @@
98
(assoc :backend (get-in config [:store :backend]))
99
(dissoc :store))
100
datom-count (* entity-count (count c/schema))
101
- conn (init-db unique-cfg)
+ [conn unique-cfg] (init-db unique-cfg)
102
initial-tx (init-tx entity-count conn)
103
measurements (vec (if (some? make-fn-invocation)
104
(do
0 commit comments