無論你正在搭建一個社交媒體網(wǎng)站還是一個內(nèi)部使用的企業(yè)應(yīng)用,《MongoDB設(shè)計(jì)模式(影印版)》這本注重實(shí)踐的指南都可以為你展示出在MongoDB和它所用來解決的商業(yè)問題之間的緊密聯(lián)系。你將學(xué)習(xí)如何把MongoDB設(shè)計(jì)模式應(yīng)用到多個具有挑戰(zhàn)性的領(lǐng)域中,比如電子商務(wù)、內(nèi)容管理和在線游戲。通過使用 Python和JayaScript的代碼實(shí)例,你將了解MongoDB 是如何讓你在調(diào)整數(shù)據(jù)模型的同時簡化開發(fā)流程。很多商業(yè)應(yīng)用在還沒有理解如何更有效地使用NoSQL數(shù)據(jù)庫之前就直接啟用了它。這本《MongoDB設(shè)計(jì)模式( 影印版)》(作者科普蘭)將為你演示文檔嵌入、多態(tài)性架構(gòu)和其他處理特定大數(shù)據(jù)用例的MongoDB模式的優(yōu)勢所在,包括:營運(yùn)智能:執(zhí)行商業(yè)數(shù)據(jù)的實(shí)時分析。電子商務(wù):讓MongoDB成為產(chǎn)品目錄大師或者庫存管理系統(tǒng)。內(nèi)容管理:學(xué)習(xí)用來存儲內(nèi)容節(jié)點(diǎn)、二元資產(chǎn)和討論區(qū)的方法。在線廣告網(wǎng)絡(luò):把技術(shù)運(yùn)用于廣告播放的頻次控制、關(guān)鍵字定位和競價(jià)。社交網(wǎng)絡(luò):學(xué)習(xí)如何存儲一個仿效Google+的復(fù)雜社交圖。
在線游戲:為一個多人角色扮演游戲提供對人物和世界數(shù)據(jù)的并發(fā)訪問。
MongoDB是一個介于關(guān)系數(shù)據(jù)庫和非關(guān)系數(shù)據(jù)庫之間的產(chǎn)品,是非關(guān)系數(shù)據(jù)庫當(dāng)中功能豐富,像關(guān)系數(shù)據(jù)庫的。他支持的數(shù)據(jù)結(jié)構(gòu)非常松散,是類似json的bson格式,因此可以存儲比較復(fù)雜的數(shù)據(jù)類型。 對于新手和那些想要獲取更多實(shí)踐知識的有經(jīng)驗(yàn)用戶來說,《MongoDB設(shè)計(jì)模式(影印版)》(作者科普蘭)都是一本必要的讀物。
Preface Part I.Design Patterns 1.To EmbedOrReference Relational Data Modeling and Normalization What Is a Normal Form,Anyway? So What's the Problem? Denormalizing for Performance MongoDB:Wh0 Needs Normalization.Anyway? MongoDB Document Format Embedding for Locality Embedding for Atomicity and Isolation Referencing for Flexibilitv Referencing for Potentially High--Arity Relationships Many-to-Many Relationships Conclusion 2.PolymorphicSchemas Polymorphic Schemas to SuppoObjectOriented Programming Polymorphic Schemas Enable Schema Evolution Storage(In-)Efficiency ofBSON Polymorphic Schemas SuppoSemiStructured Domain Data Conclusion 3.MimickingTransactional Behavior The Relational Approach to Consistency Compound Documents Using Complex Updates Optimistic Update with Compensation Conclusion Partll.UseCases 4.OperationalIntelligence Storing Log Data Solution 0verview Schema Design Operations Sharding Concerns Managing Event Data Growth PreAggregated Reports Solution 0verview Schema Design Operations Sharding Concerns Hierarchical Aggregation Solution Overview Schema Design MapReduce Operations Sharding Concerns 5.Ecommetce Product Catalog Solution Overview Operations Sharding Concerns Category Hierarchy Solution Overview Schema Design Operations Sharding Concerns Inventory Management Solution 0verview Schema Operations Sharding Concerns 6.ContentManagementSystems Metadata and Asset Management Solution Overview Schema Design Operations Sharding Concerns Storing Comments Solution 0verview Approach:One Document per Comment Approach:Embedding All Comments Approach:Hybrid Schema Design Sharding Concerns 7.OnlineAdvertising Networks Solution Overview Design 1:Basic Ad Serving Schema Design Operation:Choose an Ad to Serve Operation:Make an Ad Campaign Inactive Sharding Concerns Design 2:Adding Frequency Capping Schema Design Operation:Choose an Ad to Serve Sharding Design 3:Keyword Targeting Schema Design Operation:Choose a Group ofAds to Serve 8.SociaI Networking Solution Overview Schema Design Independent Collections Dependent Collections Operations Viewing a News Feed or WaU Posts Commenting on a Post Creating a New Post Maintaining the Social Graph Sharding 9.OnlineGaminq. Solution Overview Schema Design Character Schema Rem Schema Locion Schema Operations Load Character Data from MongoDB Extract Armor and Weapon Data for Display Extract Character Attributes,Inventorand Room Information for Display PickUp anItemfrom aRoom Remove an Item from a Container Move the Character to a Different Room Buy an Item Sharding Afterword Index
這本書很薄,內(nèi)容,印刷方面很好!!很不錯的書!!當(dāng)當(dāng)?shù)目爝f也很給力~~