1 / 43
文档名称:

introduction mongodb.pptx

格式:pptx   大小:908KB   页数:43页
下载后只包含 1 个 PPTX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

introduction mongodb.pptx

上传人:文库旗舰店 2018/6/26 文件大小:908 KB

下载得到文件列表

introduction mongodb.pptx

相关文档

文档介绍

文档介绍:Data Store with MongoDB
Roger Xia
What is document-oriented?
JSON objects
Not relational
Not OODB
Database schema != program “schema”
Terms
Row -> JSON document
Tables -> collections
Indexes -> index
Join -> embedding and linking
Choose a schema that
makes queries easy
makes queries fast
facilitates atomicity
facilitates sharding
Key question: embed vs. link
“Contains relationship”: embed
Embed = “pre-joined”
Links: client/server turnarounds
On a close call, embed. Use rich documents.
Note the 4MB object size limit
Arbitrary limit but pushes one towards good designs
Database References
Simple Direct/Manual Linking (manually coded link)
DBRef (creating references between documents)
Querying
Query Expression Objects
query objects and Advanced Queries
Related driver docs: Python, Java, Ruby, PHP
Query Options
Field Selection (request only certain fields be returned)
Sorting
Skip and Limit (for easy paging, skip the first 20 last names, and limit our result set to 10)
slaveOk (Querying Secondaries)
Cursors (Cursors are then used to iteratively retrieve all the documents returned by the query.)
Related driver docs: Python, Java, Ruby, PHP