官术网_书友最值得收藏!

Mongoid and MongoMapper

It's also important to know about the other Ruby ODMs (Object Document Managers) besides Mongoid. Among the most popular ones out there, is MongoMapper.

  • MongoMapper, though older than Mongoid, has a slower evolution cycle. Unlike Mongoid, MongoMapper differentiates between documents and embedded documents.
  • MongoMapper uses a non-ActiveModel syntax such as many and one, where Mongoid uses has_many and has_one.
  • Mongoid has currently become more popular because of its adherence to the Rails ActiveModel and ActiveRelation syntax.
  • Mongoid has much better documentation than MongoMapper.
主站蜘蛛池模板: 汶川县| 聂拉木县| 屏东市| 丰城市| 兴和县| 额敏县| 普宁市| 界首市| 大兴区| 咸宁市| 漾濞| 电白县| 斗六市| 高淳县| 临澧县| 高阳县| 青神县| 松桃| 南昌市| 上虞市| 安龙县| 潜山县| 高唐县| 色达县| 青铜峡市| 沈丘县| 大邑县| 玛多县| 荥经县| 台州市| 虞城县| 远安县| 兖州市| 肇东市| 平阳县| 衡东县| 石首市| 清丰县| 宜都市| 同心县| 凌云县|