Closed Arjeno closed 12 years ago
Looks like some models are working properly. I'll investigate further when I have time for it.
Hey,
any chance you could create a sample 1 model, 1 controller app to demonstrate the issue?
I am experiencing this too. Using rails3.1
alright, had a look around the Mongoid's code base and created an experimental mongoid
branch here: rails-dev-boost/mongoid
Could you please update your Gemfiles with:
gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :branch => 'mongoid'
and report back the results?
Will try this soon and get back to you. Thanks :)
I am going to test that branch as well
the patch does not work here
@dcu: what version of mongoid are you using?
@dcu: can you also please test this another rails-dev-boost/mongoid-brute-force branch?
gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :branch => 'mongoid-brute-force'
mongoid 2.3.2, I am testing the new branch now
it has been working well so far
I'm using the brute-force branch now as well. Will let you know how it works.
Not working for me. Still caching every now and then forcing me to restart the server.
@Arjeno are you sure you are not storing references to mongo model objects/classes at the class level?
class A
@mongo_model = MongoModel # can't be doing this!
def self.first_record
@first_record ||= MongoModel.first # or this!
end
end
@nickhoffman is asking if this happens for all mongoid models or only for those inheriting from other models?
Also, do you have model preloading enabled?
@Arjeno: are you sure the breakage is not due to the "reloadable constant inter-references"? See the Known limitations section of the README for more info.
I have reports that my changes have fixed the outstanding Mongoid issues: here.
I'm closing this.
@Arjeno feel free to get back to me if things are still broken for you.
First of all I've got a huge performance boost. This is a great gem! However it looks like it's not properly working with Mongoid. All/any changes in a model is not being picked up by the gem and I have to restart the server each time. Any ideas?