-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make reserve faster on DbQueue #281
base: master
Are you sure you want to change the base?
Conversation
mikk150
commented
Oct 24, 2018
•
edited
Loading
edited
Q | A |
---|---|
Is bugfix? | yes |
New feature? | no |
Breaks BC? | no |
Tests pass? | yes |
Fixed issues | #280 |
Mkay, this does not fix it... it makes it better, but ultimately it is still slow Because of so, should I remove this |
That's super-weird. How could it be that selecting 1 record is slower than selecting 100 records? |
@samdark my findings there even were wrong. I am still trying to figure out how to make it so that it starts using indexes |
It won't use index since it doesn't make sense to use index on two rows. Even full table scan will be faster. |
Make it 5000 rows and check again. |
I played with this some time ago and I've got much better performance with separate query for each priority (I have 3 priorities, so it was not a big deal) than one query with |
@rob006 unfortunately yii2-queue supports more than 3 priorities... I would like to fix it once and for all, just as it should be fixed |
That depends on driver. Some of them support more priorities, some of them does not support priorities at all. There is no standard here. |