/ All posts
- Threads argument to functions
This is correct.
THREADS is used to parallelize query statements.
Thread configuration strings are used to parallelize individual function calls.
Ordinarily, you would use either one or the other, whichever suits the process better. It is completely normal to have a multi-statement query which uses THREADS in one statement and XxxPar functions with ThreadConfig in another statement.
Also: we'll be getting rid of BATCH and convert THREADS to take a JSON thread configuration, similar to the functions. This will allow us to take more parallelization parameters for query statements and unify the syntax.