Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: describe the difference between built in counter cache vs this gem #17

Open
hayksaakian opened this issue Apr 8, 2014 · 2 comments

Comments

@hayksaakian
Copy link

From what I read in the readme, seems like this definitely works on embedded documents whereas its ambiguous in the docs of mongoid built in counter cache .

Thats just one example.

@jah2488
Copy link
Owner

jah2488 commented Aug 18, 2014

This gem pre-dates the build in counter cache and at this point I am not familiar with the built in counter cache functionality.

@bkoski
Copy link

bkoski commented Oct 13, 2014

The built-in counter cache isn't mentioned in the mongoid.org docs but is implemented as a CounterCache module.

Seems like this gem has two key advantages:

  • embedded document support
  • conditional counts, i.e. if item is at status 'published'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants