Learning Mongoid
暫譯: 學習 Mongoid

Gautam Rege

  • 出版商: Packt Publishing
  • 出版日期: 2013-12-15
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 140
  • 裝訂: Paperback
  • ISBN: 1782167501
  • ISBN-13: 9781782167501
  • 海外代購書籍(需單獨結帳)

商品描述

If you know MongoDB and Ruby, then Mongoid is a very handy tool to have at your disposal. Quickly learn to build Rails applications with the helpful code samples and instructions in this book.

Overview

  • A step-by-step guide that explains how to use Mongoid through lots of examples and code
  • Monitor and fine-tune the performance of your application
  • Work with the MongoDB aggregation framework

In Detail

Mongoid helps you to leverage the power of schema-less and efficient document-based design, dynamic queries, and atomic modifier operations. Mongoid eases the work of Ruby developers while they are working on complex frameworks.

Starting with why and how you should use Mongoid, this book covers the various components of Mongoid. It then delves deeper into the detail of queries and relations, and you will learn some tips and tricks on improving performance. With this book, you will be able to build robust and large-scale web applications with Mongoid and Rails.

Starting with the basics, this book introduces you to components such as moped and origin, and how information is managed, learn about the various datatypes, embedded documents, arrays, and hashes. You will learn how a document is stored and manipulated with callbacks, validations, and even atomic updates. This book will then show you the querying mechanism in detail, right from simple to complex queries, and even explains eager loading, lazy evaluation, and chaining of queries. Finally, this book will explain the importance of performance tuning and how to use the right indexes. It also explains MapReduce and the Aggregation Framework.

What you will learn from this book

  • Learn the syntax of Mongoid 4 with Rails 4
  • Understand moped, the new Ruby driver for MongoDB Learn about document relations in Mongoid
  • Understand origin, the new querying DSL
  • Manage indexes in Mongoid
  • Learn about gems that work with Mongoid
  • Tune and monitor performance

Approach

A step-by-step tutorial with focused examples that will help you build scalable, high performance Rails web applications with Mongoid.

Who this book is written for

If you are an application developer who wants to learn how to use Mongoid in a Rails application, this book will be great for you. You are expected to be familiar with MongoDB and Ruby.

商品描述(中文翻譯)

如果您了解 MongoDB 和 Ruby,那麼 Mongoid 將是一個非常方便的工具。透過本書中的有用程式碼範例和指導,快速學會如何構建 Rails 應用程式。

概述
- 一個逐步指南,通過大量範例和程式碼解釋如何使用 Mongoid
- 監控和微調應用程式的性能
- 使用 MongoDB 聚合框架

詳細內容
Mongoid 幫助您利用無模式且高效的文件設計、動態查詢和原子修改操作的力量。Mongoid 簡化了 Ruby 開發人員在處理複雜框架時的工作。

本書從為什麼以及如何使用 Mongoid 開始,涵蓋了 Mongoid 的各種組件。然後深入探討查詢和關係的細節,您將學到一些提高性能的技巧和竅門。通過本書,您將能夠使用 Mongoid 和 Rails 構建穩健且大規模的網頁應用程式。

從基礎開始,本書介紹了 moped 和 origin 等組件,以及如何管理資訊,學習各種資料類型、嵌入文件、陣列和雜湊。您將學習如何使用回調、驗證,甚至原子更新來存儲和操作文件。本書將詳細介紹查詢機制,從簡單到複雜的查詢,甚至解釋了急切加載、延遲評估和查詢鏈接。最後,本書將解釋性能調優的重要性以及如何使用正確的索引。它還解釋了 MapReduce 和聚合框架。

您將從本書學到的內容
- 學習 Mongoid 4 與 Rails 4 的語法
- 了解 moped,MongoDB 的新 Ruby 驅動程式,學習 Mongoid 中的文件關係
- 了解 origin,新的查詢 DSL
- 管理 Mongoid 中的索引
- 學習與 Mongoid 一起使用的 gems
- 調整和監控性能

方法
一個逐步的教程,提供專注的範例,幫助您使用 Mongoid 構建可擴展的高性能 Rails 網頁應用程式。

本書的讀者對象
如果您是一位希望學習如何在 Rails 應用程式中使用 Mongoid 的應用程式開發人員,本書將非常適合您。您應該對 MongoDB 和 Ruby 有一定的了解。