List:Commits« Previous MessageNext Message »
From:Ole John Aske Date:February 22 2011 5:44pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (ole.john.aske:4218)
View as plain text  
#At file:///net/fimafeng09/export/home/tmp/oleja/mysql/mysql-5.1-telco-7.0/ based on revid:ole.john.aske@stripped

 4218 Ole John Aske	2011-02-22
      Added missing file from previous commit. 

    added:
      mysql-test/include/execute_with_statistics.inc
=== added file 'mysql-test/include/execute_with_statistics.inc'
--- a/mysql-test/include/execute_with_statistics.inc	1970-01-01 00:00:00 +0000
+++ b/mysql-test/include/execute_with_statistics.inc	2011-02-22 17:44:38 +0000
@@ -0,0 +1,28 @@
+# include/execute_with_statistics.inc
+#
+# SUMMARY
+#
+#    Explain and execute the select statment in $query.
+#    Then report 'Last_query_cost' estimate from the query
+#    optimizer and total number of 'Handler_read%' when the
+#    query was executed.
+#    Intended usage is to verify that there are not regressions
+#    in either calculated or actuall cost for $query.
+#
+# USAGE
+#
+#    let $query= <select statement>;
+#    --source include/execute_with_statistics.inc
+#
+# EXAMPLE
+#    t/greedy_optimizer.test
+#
+
+eval EXPLAIN $query;
+SHOW STATUS LIKE 'Last_query_cost';
+
+FLUSH STATUS;
+eval $query;
+SELECT SUM(variable_value) AS Total_handler_reads
+   FROM information_schema.session_status
+   WHERE variable_name LIKE 'Handler_read%';


Attachment: [text/bzr-bundle] bzr/ole.john.aske@oracle.com-20110222174438-mvlio73dc0dwia76.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (ole.john.aske:4218) Ole John Aske22 Feb