Skip to content

Commit 47a8703

Browse files
committed
Remove Rich Comment Form now it's a real test
1 parent f4ecf82 commit 47a8703

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/test/clojure/clojure/java/jdbc_test.clj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,16 +1254,6 @@
12541254
{:id (generated-key db 3) :name "Orange" :appearance "round" :cost nil :grade nil}
12551255
{:id (generated-key db 2) :name "Pear" :appearance "yellow" :cost nil :grade nil}] rows)))))
12561256

1257-
(comment
1258-
(def ones (repeat 100 1))
1259-
(def select-1 (str "select " (str/join ", " ones)))
1260-
(def select-? (into [(str "select " (str/join ", " (map (fn [_] "?") ones)))] ones))
1261-
(time (jdbc/execute-one! (-> a :database :pooled-db :datasource) [select-1]))
1262-
(time (jdbc/execute-one! (-> a :database :pooled-db :datasource) select-?))
1263-
(require '[clojure.java.jdbc :as j])
1264-
(time (j/query (-> a :database :pooled-db) [select-1]))
1265-
(time (j/query (-> a :database :pooled-db) select-?)))
1266-
12671257
(deftest check-prepared-performance
12681258
(let [ones (repeat 100 1)
12691259
select-1 [(str "select " (str/join ", " ones))]

0 commit comments

Comments
 (0)