Captures causes of slowness
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
,noti,pop-os,24.08.2024 23:11,file:///home/noti/.config/libreoffice/4;
|
|
||||||
@@ -1,20 +1,21 @@
|
|||||||
(ns auto-ap.import.transactions
|
(ns auto-ap.import.transactions
|
||||||
(:require
|
(:require [auto-ap.datomic :refer [audit-transact conn random-tempid
|
||||||
[auto-ap.datomic :refer [audit-transact conn random-tempid remove-nils]]
|
remove-nils]]
|
||||||
[auto-ap.datomic.accounts :as a]
|
[auto-ap.datomic.accounts :as a]
|
||||||
[auto-ap.datomic.checks :as d-checks]
|
[auto-ap.datomic.checks :as d-checks]
|
||||||
[auto-ap.datomic.transaction-rules :as tr]
|
[auto-ap.datomic.transaction-rules :as tr]
|
||||||
[auto-ap.datomic.transactions :as d-transactions]
|
[auto-ap.datomic.transactions :as d-transactions]
|
||||||
[auto-ap.rule-matching :as rm]
|
[auto-ap.logging :as alog]
|
||||||
[auto-ap.solr :as solr]
|
[auto-ap.rule-matching :as rm]
|
||||||
[auto-ap.time :as atime]
|
[auto-ap.solr :as solr]
|
||||||
[auto-ap.utils :refer [dollars=]]
|
[auto-ap.time :as atime]
|
||||||
[clj-time.coerce :as coerce]
|
[auto-ap.utils :refer [dollars=]]
|
||||||
[clj-time.core :as t]
|
[clj-time.coerce :as coerce]
|
||||||
[clojure.core.cache :as cache]
|
[clj-time.core :as t]
|
||||||
[auto-ap.logging :as alog]
|
[clojure.core.cache :as cache]
|
||||||
[datomic.api :as dc]
|
[com.brunobonacci.mulog :as mu]
|
||||||
[digest :as di]))
|
[datomic.api :as dc]
|
||||||
|
[digest :as di]))
|
||||||
|
|
||||||
(defn rough-match [client-id bank-account-id amount]
|
(defn rough-match [client-id bank-account-id amount]
|
||||||
(if (and client-id bank-account-id amount)
|
(if (and client-id bank-account-id amount)
|
||||||
@@ -269,8 +270,11 @@
|
|||||||
))))
|
))))
|
||||||
|
|
||||||
(defn maybe-code [{:transaction/keys [client amount] :as transaction} apply-rules valid-locations]
|
(defn maybe-code [{:transaction/keys [client amount] :as transaction} apply-rules valid-locations]
|
||||||
(when-not (seq (match-transaction-to-unpaid-invoices amount client))
|
(mu/trace
|
||||||
(apply-rules transaction valid-locations)))
|
::maybe-code
|
||||||
|
[]
|
||||||
|
(when-not (seq (match-transaction-to-unpaid-invoices amount client))
|
||||||
|
(apply-rules transaction valid-locations))))
|
||||||
|
|
||||||
(defn maybe-apply-default-vendor [t]
|
(defn maybe-apply-default-vendor [t]
|
||||||
(cond-> t
|
(cond-> t
|
||||||
|
|||||||
Reference in New Issue
Block a user