[MDEV-3569] LP:631504 - New DS-MRR optimizations must be visible in EXPLAIN Created: 2010-09-06  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Philip Stoev (Inactive) Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug631504.xml    

 Description   

As discussed previously, it is imperative for proper automatic testing that the new DSS-MRR-CPK optimizations announce themselves in EXPLAIN . The current "using join buffer" is too generic to be usful. Another string in the Extra column would be required, or , at the very least, some indication in EXPLAIN EXTENDED + SHOW WARNINGS. If the optimization is decided on runtime, some other method of knowing that it has triggered must be provided.

Also, modifying the optimizer variable @mrr_sort_keys does not cause any visible changes in the EXPLAIN. We have queries that are experiencing performance improvements and regressions due to the recent DS-MRR optimizations, but the EXPLAIN plan does not change even a single bit.



 Comments   
Comment by Sergei Petrunia [ 2011-02-02 ]

Re: New DS-MRR optimizations must be visible in EXPLAIN
Fix proposal and discussion here: https://lists.launchpad.net/maria-developers/msg03804.html

Comment by Sergei Petrunia [ 2011-04-04 ]

Re: New DS-MRR optimizations must be visible in EXPLAIN
The EXPLAIN part have been addressed: EXPLAIN now shows whether key ordering, rowid ordering, or both of them were performed:

http://lists.askmonty.org/pipermail/commits/2011-April/001493.html
http://lists.askmonty.org/pipermail/commits/2011-April/001498.html

Comment by Philip Stoev (Inactive) [ 2011-04-07 ]

Re: New DS-MRR optimizations must be visible in EXPLAIN
SergeyP, unfortunately your solution has disconnected the EXPLAIN output from the optimizer switches that control it. In other words, a user would not know that if he gets a " Rowid-ordered scan" , he should use optimizer_use_mrr=disable to disable it. Previously, MRR was mentioned both in EXPLAIN and in the mysqld option.

Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ]

Launchpad bug id: 631504

Generated at Thu Feb 08 06:49:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.