2015-06-13, 10:08 AM
I'm not sure what you mean by "ugly".
Be aware that if you have a lot of threads, that query could be expensive (you'll need to test that), if it's run often.
Be aware that if you have a lot of threads, that query could be expensive (you'll need to test that), if it's run often.