mongomapper

Mongoid or MongoMapper? [closed]

让人想犯罪 __ 提交于 2019-11-28 15:13:57
问题 I have tried MongoMapper and it is feature complete (offering almost all AR functionality) but i was not very happy with the performance when using large datasets. Has anyone compared with Mongoid? Any performance gains ? 回答1: I have used MongoMapper for awhile but decided to migrate to MongoId. The reason is hidden issues plus arrogance towards users. I had to jump through hoops to make MongoMapper work with Cucumber (succeeded in the end) and to put a couple of patches even the project was

Use Yaml for MongoMapper Config

蹲街弑〆低调 提交于 2019-11-28 08:28:20
问题 I have my Yaml configuration file, mongo.yml : development: adapter: mongodb database: fhsclock_development host: localhost port: nil test: adapter: mongodb database: fhsclock_test host: localhost port: nil production: adapter: mongodb database: fhsclock hosts: - - localhost - nil - - staff.mongohq.com - 10015 How do I use this file for configuration and connection with MongoMapper? 回答1: MongoMapper will just use the file if it's you're using Rails and the file is at config/mongo.yml . If you

Rails + MongoMapper + EmbeddedDocument form help

巧了我就是萌 提交于 2019-11-27 12:31:40
问题 I am working on a pretty simple web application (famous last words) and am working with Rails 2.3.5 + MongoMapper 0.7.2 and using embedded documents. I have two questions to ask: First, are there any example applications out there using Rails + MongoMapper + EmbeddedDocument? Preferably on GitHub or some other similar site so that I can take a look at the source and see where I am supposed to head? If not ... ... what is the best way to approach this task? How would I go about creating a form