priority wrong

Can't this be done on queue instead? I suspect clear to be a rather costly method, especially if you have some kind of batch execution it may be better to clear per queue no?