Skip to content

MyModel.find_by_x(val).count seems to always return the global, unfiltered count #3

@slash4

Description

@slash4

Hi @stakach , I'm playing with this lib and everything works nicely except 2 strange things :

  • When using find_by helpers, count seems to always return the global, unfiltered count, even if there's no result matching the filter.
  • If we try to use built-in reducers like _count, it's not possible to read the result :
    FFI::NullPointerError: invalid memory read at address=0x00000000000000 from /usr/local/bundle/gems/libcouchbase-0.1.0/lib/libcouchbase/query_view.rb:98:in []'`

Any thoughts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions