Stop serializing/de-serializing router target list element

This commits prevents the target list entries for router plans
to be added in the serialized plan since they are not required.
The aim of this change is to improve performance with skipping
some of the unnecessary serializations.
pull/648/head
Onder Kalaci 2016-07-13 16:13:45 +03:00
parent b01d19db3d
commit 8872f46e8d
1 changed files with 7 additions and 0 deletions

View File

@ -842,6 +842,13 @@ RouterQueryJob(Query *query, Task *task)
job->jobQuery = query; job->jobQuery = query;
job->taskList = taskList; job->taskList = taskList;
/*
* Router query jobs do not require jobQuery's target list. Setting it to NIL
* enables us not to serialize/de-serialize while the query is passed to the
* executor. This improves planning times significantly.
*/
job->jobQuery->targetList = NIL;
return job; return job;
} }