Partitions Cached

Hi,

In Projections console (…/web/projections.htm) there is “Partitions Cached” indicator. I’m wondering is there any documentation on this property?

Few custom projections in our environment has ~3K partitions cached, while system projections are stable at 1.

Thanks,

Raimondas

They are .foreach projections or use .statePartitionedBy I assume?

Its the number of state variables for the folds.

Yes, .foreach is used in those projections.
Is this something I should be worried about or it should remain constant (assuming the state variables do not change)?

it means with foreach that you are running on 3k streams. There is a state per stream on a foreach

I have a question. I create a projection with fromCategory(‘user’).foreachStream(), there are more than 3000 users but Partitions cached keeps 400 all the time, I can call http://localhost:2113/projection/user-projection/state?partition=user-2756 to get any.

Since the Partitions cached doesn’t have all partitions, I cannot SubscribeToStream for all