zhuqi-lucas commented on PR #15348: URL: https://github.com/apache/datafusion/pull/15348#issuecomment-2745186535
Updated the result for short string sort which will benefit a lot from StringView type, add Q 11 for sort: ```rust - const SORT_QUERIES: [&'static str; 10] = [ + const SORT_QUERIES: [&'static str; 11] = [ // Q1: 1 sort key (type: INTEGER, cardinality: 7) + 1 payload column r#" SELECT l_linenumber, l_partkey @@ -159,6 +159,12 @@ impl RunOpt { FROM lineitem ORDER BY l_orderkey, l_suppkey, l_linenumber, l_comment "#, + // Q11: 1 sort key (type: VARCHAR, cardinality: 4.5M) + 1 payload column + r#" + SELECT l_shipmode, l_comment, l_partkey + FROM lineitem + ORDER BY l_shipmode; + "#, ]; ``` This PR: ```rust Q11 iteration 0 took 5645.3 ms and returned 59986052 rows Q11 iteration 1 took 5641.1 ms and returned 59986052 rows Q11 iteration 2 took 5520.6 ms and returned 59986052 rows Q11 avg time: 5602.33 ms ``` The main: ```rust Q11 iteration 0 took 6687.5 ms and returned 59986052 rows Q11 iteration 1 took 6504.5 ms and returned 59986052 rows Q11 iteration 2 took 6544.6 ms and returned 59986052 rows Q11 avg time: 6578.87 ms ``` About 20% performance improvement. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org