Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

[equality] Comment out debugging statements in lib.quality/= (#65641)

Oleksandr Yakushev1281f41b9338
diff --git a/src/metabase/lib/equality.cljc b/src/metabase/lib/equality.cljc
index ab20e68e947..67c66999bd7 100644
--- a/src/metabase/lib/equality.cljc
+++ b/src/metabase/lib/equality.cljc
@@ -178,9 +178,12 @@ are known to be the same."
(defmethod = :metadata/column
[col-1 col-2]
(let [not-equal-reason (columns-not-equal-reason col-1 col-2)]
- (if not-equal-reason
- (log/debugf "Columns are not equal. Reason: %s" (pr-str not-equal-reason))
- (log/debug "Columns are equal."))
+ ;; This block is commented out for performance reasons. Even when DEBUG level is not enabled, computing level
+ ;; eligibility on each comparison operation is significantly expensive. If you need to debug this, consider
+ ;; restricting the log to particular columns.
+ #_(if not-equal-reason
+ (log/debugf "Columns are not equal. Reason: %s" (pr-str not-equal-reason))
+ (log/debug "Columns are equal."))
(not not-equal-reason)))
(mu/defn- resolve-field-id-in-source-card :- ::lib.schema.metadata/column