Cassandra Rails无法执行多个列过滤器

时间:2017-06-30 11:10:09

标签: ruby-on-rails ruby ruby-on-rails-3 cassandra cequel

Rails Cassandra不能使用多个过滤器的过滤器。

我的模态

class Template 
  include Cequel::Record
  key :id,:int,index:true
  column :u_id,:uuid,:auto=>true
  column :user_id, :int,index:true
  column :code_type,:text,index:true
  column :name, :text
  column :code_text, :text
  timestamps
end
Template.where(:code_type=>"job_html_template",:user_id=>1).allow_filtering!

Cequel::Record::IllegalQuery: Can't scope by more than one indexed column in the same query

I am using  cequel (3.0.0) 

有人可以帮助我解决这个问题吗?

0 个答案:

没有答案