Is it possible let us choose uuid or int as queue ID ?
If we can use UUID as the ID of the queue, I think we can use MULTI COMMAND in the redis driver to make the performance better
Is it possible let us choose uuid or int as queue ID?
Technically yes but that would require significant rework: https://github.com/yiisoft/yii2-queue/blob/master/src/drivers/db/migrations/M161119140200Queue.php#L26
If we can use UUID as the ID of the queue, I think we can use MULTI COMMAND in the redis driver to make the performance better
How much better?
How much better?
I mean only redis driver , if we set an option like "useUuidAsQueueId=true".
In the redis driver , check useUuidAsID === true , if true , then use multi() for insert queue data.
Yes, I understand that. You've stated that performance gets better. I wonder how much better it is?
That's interesting. I remember that usually it's other way around - for example in API Platform uuid is recommended as a resource identifier but in addition to an integer database identifier, so DB can run faster and resource identifier cannot be guessed.