本文介绍了Mongoid或MongoMapper?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过MongoMapper,它功能完整(几乎提供了所有AR功能),但是使用大型数据集时,我对性能并不满意.有谁与Mongoid相提并论吗?任何性能提升?

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 ?

推荐答案

我使用MongoMapper已有一段时间,但决定迁移到MongoId.原因是隐藏的问题和对用户的傲慢.为了使MongoMapper与Cucumber一起工作(最终成功),我不得不跳了个圈,即使该项目很简单,也要放几个补丁,但这不是重点.当我尝试提交一个错误修复程序(由于与ActiveRecord不兼容)时,他们似乎对我发现问题并被推向我的状态感到生气.在测试期间,我在查询实现方面也遇到了一个重大错误,同时对它们的测试进行了调整,使其通过了测试.经过我以前的经验,不敢提交.

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 simple, but it's not the point. When I tried to submit a bug fix (due to incompatibility with ActiveRecord), they seemingly got pissed off that I found a problem and I was pushed around. While I was testing, I also encountered a major bug with their query implementation, while their testing was tuned in a way that the tests pass. After my previous experience, didn't dare to submit it.

与MongoId相比,它们的拉取请求和错误/功能提交的数量要少得多,即社区参与度要低得多.和我一样的经历?

They have a significantly lower number of pull requests and bug/feature submissions than MongoId, i.e. community participation is much lower. Same experience as mine?

我现在不知道哪个具有更多功能,但是我看不到MongoMapper的未来.我不介意自己解决问题并添加功能,但是当它们无法解决错误时,我会介意.

I don't know which one has more features right now, but I don't see much future in MongoMapper. I don't mind fixing issues and adding functionality myself, but I do mind situations when they wouldn't fix bugs.

这篇关于Mongoid或MongoMapper?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 17:38