# Tune Batch Indexing Kafka Partitions

The first batch indexing variable that should be determined is the minimum number of Kafka partitions required.

Use the following formula to determine the minimum number of Kafka partitions for
the enrichment topology

`Num Partitions=Max( t/p,t/c)`

where

`t`

is the desired throughput`p`

is the maximum throughout using a single producer`c`

is the maximum throughput using a single consumer