> For the complete documentation index, see [llms.txt](https://learn.capstorm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.capstorm.com/copystorm-restore/reference/global-parameters-tab/record-scanning-parameters.md).

# Record Scanning Parameters

Parameters for controlling the level of parallelism and memory used when scanning the CopyStorm database for records to restore.

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-3ce7ae9fdcb6608505a08b702aef88ca44ffc089%2F0e36b7a5-record_scanning_parameters-1.png?alt=media)

##

| Candidate Scan Parameter   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Candidate Scan Batch Size  | The number of records to process in a single batch when looking for candidates to restore (10 to 1000). Larger numbers can increase restore performance but will cause CopyStorm/Restore to use more memory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Candidate Scan Parallelism | <p>The level of parallelism to allow when scanning for restore candidates. Increased parallelism can increase restore performance but will cause CopyStorm/Restore to use more memory.</p><p>Available values are:</p><ul><li>Minimal: Scan 1 table at a time, 1 batch of referenced records at a time, and wait until a table is fully scanned before scanning the next table.</li><li>Medium (Default): Scan 5 tables at a time, 5 batches of referenced records at a time, and start scanning referenced tables when there are 3 batches of records awaiting a scan.</li><li>High: Scan 25 tables at a time, 25 batches of referenced records at a time, and start scanning referenced tables as soon as there is a batch of records awaiting a scan.</li><li>Custom: Directly set scanning parallelism parameters.</li></ul> |
| Parallel Candidate Scans   | The maximum number of tables that can be scanned for records simultaneously.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Parallel Reference Scans   | The maximum number of queries that can run simultaneously when scanning for related records. This limit is Per-Candidate-Scan. For example, if “Parallel Candidate Scans” is set to 2, and “Parallel Reference Scans” is set to 3, there may be up to 6 related record queries running simultaneously.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
