couchbase / couchbase-ruby-model

The Active Model implementation for Couchbase Server built on couchbase-ruby-client
61 stars 23 forks source link

Passing in stale: false when querying a view times out the query #25

Closed jabberfest closed 9 years ago

jabberfest commented 9 years ago

If you do something like

Avatar.by_user_id(key: '08164b3a13c28f051b4f4fc2ad00108c', stale: false).first 

the query times out.

The following will return a model.

Avatar.by_user_id(key: '08164b3a13c28f051b4f4fc2ad00108c').first  

Gemfile Lock

    couchbase (1.3.9)
      connection_pool (>= 1.0.0, <= 3.0.0)
      multi_json (~> 1.0)
      yaji (~> 0.3, >= 0.3.2)
    couchbase-model (0.5.4)
      activemodel
      couchbase (~> 1.3.3)

Package Versions

ii  couchbase-server                                      2.5.1                                               amd64        Couchbase Server
ii  libcouchbase-dev                                      2.4.1                                               amd64        library for the Couchbase protocol, development files
ii  libcouchbase2-core                                    2.4.1                                               amd64        library for the Couchbase protocol, core files
ii  libcouchbase2-libevent                                2.4.1                                               amd64        library for the Couchbase protocol (libevent backend)
jabberfest commented 9 years ago

It's is fixed in Couchbase 3.0 :+1: Just tried 3.0 Beta.