When dispatching topic msgs to durable subscribers with msg selectors we always write the pending ack of each subscription to the index and persist the index, no matter whether the msg selector of the sub matches.
In usecases where there are many subscribers with msg selectors and the msg matches only a few subscribers, we persist acks that are not necessarily needed.
This place potentially unnecessary index writes and will affect the performance when dispatching to a lager number of subscribers.
We should investigate into improvements so that pending acks are not written for subscribers whose selectors anyway don't match the msg.