Book Image

Learning Mongoid

By : Gautam Rege
Book Image

Learning Mongoid

By: Gautam Rege

Overview of this book

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.
Table of Contents (14 chapters)
Learning Mongoid
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

About the Author

Gautam Rege is driven by his passion for programming, he co-founded Josh Software with Sethupathi Asokan in 2007. He still codes religiously and leads the marketing of the India-based Josh Software brand across the world, apart from being involved in delivering web solutions for the client partners of the organization. With more than 13 years of experience in the industry, he has handled a wide array of profiles that have helped him to develop strong analysis and project management skills, and an understanding of client partner needs for sustainable and high-standard web solutions.

He is an ardent promoter of Ruby on Rails and leads many of the brand's initiatives to promote this framework in India. He helps organize the annual RubyConf India, talks at Ruby conferences across the world, and manages local Ruby meetings. When not discussing Ruby, he loves talking about entrepreneurship and the importance of starting up young! Apart from being an active voice through his popular blog, he has authored the book Ruby and MongoDB Web Development Beginner's Guide, Packt Publishing. He truly believes that Ruby is the language of the next generation of web application development.

Before beginning his professional career in 2000, he completed his B.E. from the Pune Institute of Computer Technology (PICT). In his spare time, apart from spending time with his family, he is an athlete and loves playing cricket, basketball, and soccer when he can. He is always on the lookout to feed his hunger for adventure by going for activities such as skydiving and bungee jumping.