Creating/removing mangles is very slow

Hi!

We are developing a billing system for our organization. The billing system works with MikroTik CCR1036-8G-2S+.
The problem in that when the mangle count is 2000 or more, the speed of adding new mangles or removing old mangles drops. For example when mangle count is about 3000, adding a new mangle through API take about several seconds. And removing mangle within a resonable time is impossible. Tell me, please, can I somehow increase the rate of addition / removal of mangles and why it’s hard for MikroTik CCR1036-8G-2S+ (36 kernels, 16 Gb operating memory) operation, despite its high performance. It seems, that 3000 mangles is little for such powerful device.

Thank you

We would like to add priorities for traffik witnin user’s channel. For example, for one user we need in 10 mangles and 10 queues:
queues.jpg
mangles.jpg
If count of users more then 200, creating mangles for new user or removing mangles for disconnected user is problem, because it’s very slow. We would like to work with 1000 users and we thought it would be easy for MikroTik CCR1036-8G-2S+ :frowning: