Concurrency

Guidance on concurrency.

Concurrency

Snowflake provides guidance on the maximum concurrent requests to the Protegrity API. However, reaching this maximum request depends on additional factors, such as, cluster use and available resources. In addition, depending on the query plan, individual batches may be processed serially across different UDFs.

The formula for theoretical maximum Snowflake concurrency is N * C * M * E * P:

  • N - # of servers in the cluster (e.g. 2xl = 32, xl = 16)
  • C - # of CPUs. This is typically 8, but depends on the hardware.
  • M – parallelism multiplier (fixed to 8)
  • E - # of external functions invoked
  • P - # of queries in running in parallel

The following table shows this calculation for a single query.

Cluster sizePredicted concurrent per query *1 UDF2 UDF5 UDF10 UDF
Medium4 servers x 8 CPU x 8 = 2562565121,2802,560
X-Large16 servers x 8 CPU x 8 = 1,0241,0242,0485,12010,240
2X-Large32 servers x 8 CPU x 8 = 2,0482,0484,09610,24020,480

Last modified : December 03, 2025