-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Distributed Query Execution
-
None
-
Query Execution
-
Fully Compatible
-
QE 2025-09-29
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The constructor of ClusterQueryResult currently copies its arguments.
Also, its getResult() and getShardId() methods always return a copy of the data here and here.
We can avoid a few copies by making the constructor move the parameters into the member variables in the initializer list, and by making the function return references to the data members.