-
Notifications
You must be signed in to change notification settings - Fork 487
EXPLAIN ANALYZE for indexes and materialized views
#32555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
caa0dce to
46c1ae7
Compare
…h led to query hardening lol]
| AND mz_now() >= a.end_time | ||
| ORDER BY a.id, b.amount DESC, b.bid_time, b.buyer; | ||
|
|
||
| CREATE INDEX wins_by_item ON winning_bids (item); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So ... running explain analyze for index works but if I update to create a materialized view and run explain analyze for mat view, I get lagging objects. Using one of the mzbuild from this pr.
Oh, ne'er mind. It came back after 263.03s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a patch for some docs tweak. I left the transform-data/optimization page alone for now because that page needs a bit more rewrite.
antiguru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One stray edit which we should remove before merging.
src/sql-parser/src/parser.rs
Outdated
| Some(ExplainFormat::VerboseText) | ||
| } | ||
| None => return Err(ParserError::new(self.index, "expected a format")), | ||
| None => return Err(ParserError::new(self.index, "exTected a format")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stray
kay-kim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm from docs pov.
Pair programmed with @antiguru.
Adds support for:
Generates appropriate queries to
mz_introspectionviews, effectively blessing certain introspection queries.Motivation
https://github.com/MaterializeInc/database-issues/issues/6551
Checklist
$T ⇔ Proto$Tmapping (possibly in a backwards-incompatible way), then it is tagged with aT-protolabel.