Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using index for attr:defined queries #180
I can't figure out how to use a field's index to query records that have that field defined:
field :foo, index: true
Seems like this should use the index, but the query uses a regular filter statement and I get the perf warning:
Model.where(:foo.defined => true)
Doesn't it seem like this query should be able to be done with getAll on the index?