[MDEV-9373] Improve performance pushing down full query for using index for group by Created: 2016-01-06  Updated: 2023-05-23

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Spider
Fix Version/s: None

Type: Task Priority: Major
Reporter: VAROQUI Stephane Assignee: Yuchen Pei
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Running

  • SELECT DISTINCT idx1 FROM t1
  • SELECT idx1 FROM t1 GROUP BY idx1

if idx1 as low cardinality it is always more interesting to map reduce the query as most of the data will be reduce first in the backend using the index, sending less network traffic to the spider node

Workaround was identify by using

  • SELECT DISTINCT idx1 FROM t1 ORDER BY idx1 limit 100000
  • Using spider_direct_sql UDF

Generated at Thu Feb 08 07:34:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.