mongoid
MongoDB and Mongoid in production
I am deploying my first little app with MongoDB and Mongoid as a driver.开发者_Go百科 What is the right secure way to use MongoDB in production?[详细]
2023-04-02 03:00 分类:问答Mongoid weirdness
I\'m sure it\'s just some very basic MongoDB concept that I fail to understand, but this drives me insane.[详细]
2023-04-02 01:56 分类:问答How do you track history & activity with Mongoid?
I\'m building a Rails app that uses MongoDB as the backend, with Mongoid as the ODM. I\'ve found it very useful, but I\'m looking for a good way to keep track of the following:[详细]
2023-04-01 18:17 分类:问答Mongoid associations, lazy loading, and all
I have the following model class Vote include Mongoid::Document include Mongoid::Timestamps field :value, :type => Symbol # can be :aye, :nay, :abstain, :present[详细]
2023-03-31 17:50 分类:问答is single table inheritance (STI) available when using polymorphism in mongoid?
When using STI and polymorphism in ActiveRecord, the following is needed to ensure that :dependent => :destroy[详细]
2023-03-31 17:43 分类:问答Mongoid 1.9.2 + Rails 2.3: Errors with BSON::OrderedHash being returned instead of object
Rails 2.3.11 application Mongoid 1.9.2 (latest \"legacy\" branch) Since there\'s no documentation for Mongoid 1.X branch anymore, I\'m struggling with what I\'ve got[详细]
2023-03-31 16:43 分类:问答MongoDB keeps querying namespaces
In my rails app I\'m using mongoid and in the logs before pretty much every query, even on the same request, it also does[详细]
2023-03-31 11:31 分类:问答Mongoid queries are fast but converting to results takes time
Mongoid queries are fast. For example if it a query which returns 300 documents takes about 10 miliseconds but if I do[详细]
2023-03-31 04:15 分类:问答Default value for a float, based on related model in mongoid
I have an app, where users list can be filtered on some criteria. One such criteria is experience of the user an mentioned in professional details. I have different kind of filters at different places[详细]
2023-03-30 22:50 分类:问答Mongoid embedded document parent not set in after_initialize callback
I\'m trying to reference the parent object of an embedded document from within an after_initialize callback.[详细]
2023-03-30 20:10 分类:问答