资源描述:
《[MongoDB.in.Action(2011.12)].Kyle.Banker.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、INACTIONKyleBankerMANNINGMongoDBinActionMongoDBinActionKYLEBANKERMANNINGSHELTERISLANDForonlineinformationandorderingofthisandotherManningbooks,pleasevisitwww.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity.Formoreinformation,ple
2、asecontactSpecialSalesDepartmentManningPublicationsCo.20BaldwinRoadPOBox261ShelterIsland,NY11964Email:orders@manning.com©2012byManningPublicationsCo.Allrightsreserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyf
3、ormorbymeanselectronic,mechanical,photocopying,orotherwise,withoutpriorwrittenpermissionofthepublisher.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthebook,andManningP
4、ublicationswasawareofatrademarkclaim,thedesignationshavebeenprintedininitialcapsorallcaps.Recognizingtheimportanceofpreservingwhathasbeenwritten,itisManning’spolicytohavethebookswepublishprintedonacid-freepaper,andweexertourbesteffortstothatend.Recogn
5、izingalsoourresponsibilitytoconservetheresourcesofourplanet,Manningbooksareprintedonpaperthatisatleast15percentrecycledandprocessedwithouttheuseofelementalchlorine.ManningPublicationsCo.Developmenteditors:JeffBleiel,SaraOnstine20BaldwinRoadCopyeditor:
6、BenjaminBergPOBox261Proofreader:KatieTennantShelterIsland,NY11964Typesetter:DottieMarsicoCoverdesigner:MarijaTudorISBN9781935182870PrintedintheUnitedStatesofAmerica12345678910–MAL–161514131211Thisbookisdedicatedtopeaceandhumandignityandtoallthosewhowo
7、rkfortheseidealsbriefcontentsPART1GETTINGSTARTED........................................................11■Adatabaseforthemodernweb32■MongoDBthroughtheJavaScriptshell233■WritingprogramsusingMongoDB37PART2APPLICATIONDEVELOPMENTINMONGODB................
8、.534■Document-orienteddata555■Queriesandaggregation766■Updates,atomicoperations,anddeletes101PART3MONGODBMASTERY.................................................1277■Indexingandqueryoptimization1298■Replication1569■Sharding18410■Deploymentanda