Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
75f669b2
Unverified
Commit
75f669b2
authored
11 months ago
by
Alexander Solovyov
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[cache] log query hash during calculation of eligibility (#41530)
parent
6f14f039
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/query_processor/middleware/cache.clj
+2
-1
2 additions, 1 deletion
src/metabase/query_processor/middleware/cache.clj
with
2 additions
and
1 deletion
src/metabase/query_processor/middleware/cache.clj
+
2
−
1
View file @
75f669b2
...
...
@@ -107,7 +107,8 @@
min-duration-ms
(
:min-duration-ms
strategy
0
)
eligible?
(
and
@
has-rows?
(
>
duration-ms
min-duration-ms
))]
(
log/infof
"Query took %s to run; minimum for cache eligibility is %s; %s"
(
log/infof
"Query %s took %s to run; minimum for cache eligibility is %s; %s"
(
i/short-hex-hash
query-hash
)
(
u/format-milliseconds
duration-ms
)
(
u/format-milliseconds
min-duration-ms
)
(
if
eligible?
"eligible"
"not eligible"
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment