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

  • Learning Mongoid
  • Gautam Rege
  • 252字
  • 2021-07-21 18:03:25

What this book covers

Chapter 1, What's so Awesome about Mongoid?, explains why Mongoid is one of the popular choices for Rails applications that use MongoDB. We are also introduced to Origin and Moped, which are integral parts of Mongoid.

Chapter 2, Mongoid Document Model, discusses the various data types that are supported by Mongoid and how they are stored. We learn about arrays, hashes, and embedded documents. We also briefly touch upon localized storage of string.

Chapter 3, Persisting Documents, discusses how documents are saved, format, optimization, and even managing custom data types and their serialization. We will also learn about atomic updates, callbacks, and validations.

Chapter 4, Mongoid Relations, explains the various relations that are supported by Mongoid, including One-to-One, One-to-Many, recursively embedded documents, and even polymorphic relations.

Chapter 5, Querying Attributes, explains everything about searching. We take a deep dive into how Origin works and how Mongoid criteria are managed. We learn about criteria chaining, lazy evaluation, and even eager loading of related documents.

Chapter 6, Performance Tuning, deals with how we can improve performance. We learn about the various indexes and when to use the right index. We see how the identity map can help in eager loading. Finally, we learn about MapReduce and the aggregation framework, which can drastically improve performance.

Chapter 7, Mongoid Modules, introduces various modules and gems available, which can help enhance the features with Mongoid. We learn about paranoid deletes, versioning, cloning, slugs, authentication, authorization using Devise, and even uploading documents using CarrierWave.

主站蜘蛛池模板: 宁南县| 奇台县| 富顺县| 宁德市| 正阳县| 潍坊市| 朝阳县| 潍坊市| 亚东县| 囊谦县| 辉县市| 马山县| 乐至县| 博客| 大余县| 常德市| 巫山县| 高安市| 扶沟县| 洛隆县| 五寨县| 赞皇县| 彝良县| 临西县| 通榆县| 甘泉县| 中牟县| 托克托县| 堆龙德庆县| 尖扎县| 崇明县| 大新县| 景泰县| 盘锦市| 五华县| 阳新县| 凤城市| 北安市| 库伦旗| 密云县| 六枝特区|