LEADER 04736nam 2200649 450 001 9910453369303321 005 20200520144314.0 010 $a1-78216-751-X 035 $a(CKB)2550000001169212 035 $a(EBL)1531996 035 $a(SSID)ssj0001126422 035 $a(PQKBManifestationID)11749721 035 $a(PQKBTitleCode)TC0001126422 035 $a(PQKBWorkID)11134054 035 $a(PQKB)11664398 035 $a(MiAaPQ)EBC1531996 035 $a(PPN)228010594 035 $a(Au-PeEL)EBL1531996 035 $a(CaPaEBR)ebr10819725 035 $a(CaONFJC)MIL550980 035 $a(OCoLC)865657076 035 $a(EXLCZ)992550000001169212 100 $a20131227d2013 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aLearning mongoid $ebuild scalable, efficient rails web applications with mongoid /$fGautam Rege ; cover image by Aniket Sawant 210 1$aBerminghim, England :$cPackt Publishing,$d2013. 210 4$dİ2013 215 $a1 online resource (140 p.) 225 0$aCommunity experience distilled 300 $aIncludes index. 311 $a1-78216-750-1 311 $a1-306-19729-5 327 $aCover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:What's so Awesome about Mongoid?; A practical approach using the Sodibee library system; Checking prerequisites; Ruby version; MongoDB version; Setting up Sodibee; Creating models; Testing the models; Introducing Moped; Dynamic attributes; Introducing Origin; Notice about Mongoid 2.x; Mongoid and MongoMapper; Summary; Chapter 2:Mongoid Document Model; The Mongoid document; Basic attributes; Arrays and hashes; Date and time attributes; Serialization with Mongoize 327 $aField aliasesEmbedded documents; Localization; Mass assignment and security; Summary; Chapter 3:Persisting Documents; MongoDB persistence strategy; Binary JSON (BSON); Memory maps, delayed sync, and journals; Creating documents; Updating documents and attributes; Database locks and transactions; Applications and lock versioning; The MongoDB findAndModify method; Atomic attribute updates; Dynamic attributes; Nested attributes; Validations; Callbacks; Summary; Chapter 4:Mongoid Relations; Configuring relationships; Common options for all relations; :class_name; :inverse_of 327 $aRelation-specific optionshas_one - the one-to-one relation; :as; :autosave; :autobuild; :dependent; :primary_key; :foreign_key; :validate; has_many - the many-to-one relation; :order; :before_add, :after_add, :before_remove, and :after_remove; The belongs_to relation; :index; :polymorphic; :touch; :counter_cache; has_and_belongs_to_many - the many-to-many relation; :inverse_of; Polymorphic relations; embeds_many - embedding many documents; :cascade_callbacks; :store_as; :cyclic; embeds_one - embed one document; embedded_in - resolving children; Embedded polymorphic relations; Summary 327 $aChapter 5:Mongoid QueriesOrigins of Origin; Query selectors; Overloading the Symbol class; Mongoid criteria; Queries on arrays and hashes; Scopes; Atomic modifiers; find_and_modify; Querying with indexed fields; Covered queries; The aggregation framework; Geolocation queries; Summary; Chapter 6:Performance Tuning; MongoDB environment; Indexes; Write concern; Compound index; Multikey index; Hashed index; Text index; IdentityMap; n+1 query problem and eager loading; MapReduce and the aggregation framework; Using the aggregation framework; Choosing between MapReduce and the aggregation framework 327 $aMonitoring query performanceProfiling MongoDB; Statistical data; Hint and currentOp; Good practices and recommendations; Summary; Chapter 7:Mongoid Modules; Timestamping; Versioning; Paranoia; Acts as state machine (aasm); carrierwave; mongoid-audit; devise; Summary; Index 330 $aA step-by-step tutorial with focused examples that will help you build scalable, high performance Rails web applications with Mongoid.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. 606 $aWeb site development 606 $aWeb applications$xDevelopment 608 $aElectronic books. 615 0$aWeb site development. 615 0$aWeb applications$xDevelopment. 676 $a005.276 700 $aRege$b Gautam$0924512 701 $aSawant$b Aniket$0869051 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910453369303321 996 $aLearning mongoid$92084529 997 $aUNINA