ThreadCount Parameter (Connect-AmazonDynamoDB Cmdlet)
Specifies the number of threads to allocate for parallel scans during data selection. A value of 1 disables parallel scanning, while higher values increase parallelism.
Syntax
Connect-AmazonDynamoDB -ThreadCount string
Data Type
cstr
Default Value
"5"
Remarks
Parallel scans allow the retrieval process to run across multiple threads, improving performance when scanning large datasets in Amazon DynamoDB. The number of threads specified by ThreadCount determines how data is split for processing. While increasing ThreadCount can significantly speed up scans, it also accelerates the consumption of read units for the table.
Higher values for ThreadCount require more system resources, such as CPU cores and bandwidth. Excessive parallelism may exhaust read capacity units quickly, potentially incurring additional costs or impacting other operations on the table. It is important to evaluate your system’s available resources and the read units allocated to your DynamoDB tables before adjusting this property.