Fix bug with send-hints and adjust spacing.
This commit is contained in:
parent
698a176c4a
commit
1ce529e5bd
|
@ -41,7 +41,7 @@
|
|||
hsql-hint (hint :views/honeysql (query-tables action-map))]
|
||||
(if-let [hints (:hints db)]
|
||||
(swap! hints conj hsql-hint)
|
||||
(send-hints! [hsql-hint]))
|
||||
(@send-hints! [hsql-hint]))
|
||||
results))
|
||||
|
||||
(defn set-hint-transport-fn!
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(id [_] id)
|
||||
(data [_ namespace parameters]
|
||||
(let [start (System/currentTimeMillis)
|
||||
data (j/query db (hsql/format (apply query-fn parameters)) :row-fn post-fn)
|
||||
data (j/query db (hsql/format (apply query-fn parameters)) :row-fn post-fn)
|
||||
time (- (System/currentTimeMillis) start)]
|
||||
(when (>= time 1000) (warn id "took" time "msecs"))
|
||||
data))
|
||||
|
|
Loading…
Reference in a new issue