I have got this structure class House include Mongoid::开发者_高级运维Document embeds_many :inhabitants
I\'m using Mongoid to get a count of certain types of records in a Mongo database. When running the quer开发者_运维技巧y with the javascript method:
I want to provide a condition for my grouping in Mongoid, but how can I send in multiple values for an attribute in the conditions hash? This is what I want to do:
There is function of attributes_name in Active record by which I can check the keys of an object but I can check the blank keys for of an object which is of MongoID not of ActiveRecord,
Is there a way to override a setter or getter for a model in Mongoid?Something like: class Project include Mongoid::Document
I have recently upgraded mongoid from 2.0.2 to 2.2.0 and mongodb from 1.8.1 to 1.8.3. After the upgrade I am facing weird issues while updating the user doument, which embeds a lot of other documents.
I am using admin_assistant and have hacked on MongoDB support. The only issue now is that the index page queries are incredibly slow. admin_assistant uses will_paginate for these queries. I verified t
Here a tricky issue dealing with nested documents, references and embedded documents. You can find a zip file containing a sample project illustrating the issue.
I\'ve got 4 mongodb slaves off of a master,and running a map reduce frequently on data in an enslaved model seems to favor the first slave by a factor of 5开发者_如何学Gox.
I trying to get mongoid to save associations, but I can only get one side to work. If I have the following test.