Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
When creating a CONNECT PIVOT table, the engine executes SELECT * on the target table. This seems really inefficient to me.
In an ideal situation, there will be some usable index on the pivot column, so SELECT DISTINCT pivotCol will be much faster.
To find the names of columns, a separate query to find table structure could be executed. I can't think of why the engine would need to do SELECT * when creating the table.
Is there some explanation I'm missing?
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Olivier Bertrand [ bertrandop ] |
Fix Version/s | 10.0.11 [ 15200 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | defaullt [ 38111 ] | MariaDB v2 [ 43411 ] |
Workflow | MariaDB v2 [ 43411 ] | MariaDB v3 [ 62503 ] |
Workflow | MariaDB v3 [ 62503 ] | MariaDB v4 [ 132304 ] |