Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Count queries go to different shards (rails3) #104
These two queries are going to different shards:
I don't have full replication enabled, and the model in question is not replicated (all queries should go to master).
The count query is going to a slave.
My understanding of Arel is limited, but I've stepped through the code and this is what seems to be happening:
The 'quote' methods in
It seems to me incorrect that
Thanks for any help.
I'm not sure how to reproduce the issue, it's working even with 821c330 reverted:
There is a problem on
The behavior is the identical with and without 821c330.
I'm closing until more information to reproduce is given :)