Reference Guide > TDV Query Engine Options > JOIN Options > PARTITION_SIZE (JOIN Option)
 
PARTITION_SIZE (JOIN Option)
PARTITION_SIZE restricts the size of the condition clause submitted to the right-hand side (RHS) of a semijoin by specifying the maximum number of condition arguments that can be sent in each batch request. This can be advantageous if a large cardinality result set is expected from the left-hand side (LHS) of a semijoin, and the RHS SQL SELECT statement must be limited in size. This option is also useful in cases where data resources are limited, such as when the SQL string cannot exceed a certain length.
To limit the partition size sent to the RHS, set PARTITION_SIZE to an integer representing the number of arguments in the condition clause submitted to the second data source.
Note: Limiting the number of arguments permitted in the condition clause does not guarantee an acceptably short SQL string, but it does provide adequate control of the submission to avoid problems.
Operator
JOIN
Syntax
PARTITION_SIZE=<int>
 
The <int> argument specifies the number of arguments in the condition clause submitted to the second data source.
Example
SELECT TableX.col1 FROM /Folder/SomeResource/DatabaseX TableX
INNER {OPTION PARTITION_SIZE=9} JOIN
/FolderY/ResourceZ TableY.col2 ON TableX.oid = TableY.oid