Más contenido relacionado Similar a NoSQL Concepts live with MongoDB (20) NoSQL Concepts live with MongoDB4. NoSQL
.. is (not only) an answer
to Big Data with focus on
performance and
scalability.
© Acando GmbH
6. Document oriented
track
_id : 435
album : „Neon Bible“
artist : „Arcade Fire“
track count : 11
track number : 2
name : „Keep The Car Running“
genre : „Rock“
© Acando GmbH
7. • Document oriented
• General Purpose
• Open Source
• Community Driven
• Commodity Hardware
© Acando GmbH
9. Schema
• Collection
• Document
• JSON/BSON
© Acando GmbH
{
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
}
"_id" : 123,
"Album" : "Neon Bible",
"Album Artist" : "Arcade Fire",
"Disc Count" : 1,
"Track Count" : 11,
"Tracks" : [
! {
! ! "_id" : 733,
! ! "Name" : "Black Mirror",
! ! "Composer" : "Richard Reed Parry",
! ! "Genre" : "Rock"
! },
! {
! ! "_id" : 735,
! ! "Name" : "Keep The Car Running",
! ! "Composer" : "Arcade Fire",
! ! "Genre" : "Rock"
! }, ...
]
12. Aggregation
SELECT genre, count(genre) FROM tracks
GROUP BY genre
ORDER BY count(genre) DESC
LIMIT 5
> db.tracks.aggregate(
{$group: { _id : "$Genre", tracks:{$sum:1}}},
{$sort: {tracks:-1}},
{$limit:5}
)
© Acando GmbH
17. Live
start shard, config server and
router
initialize sharding for a collection
show shard distribution and
chunks
© Acando GmbH
18. Sharding in Production
Your Application
Native Driver
Router
mongos
Config
Shard 1
mongos
Shard 2
mongos
Shard 3
mongod
mongod
mongod
mongod
mongod
mongod
mongod
mongod
© Acando GmbH
mongod
mongod
mongod
mongod
21. Literature
NoSQL Distilled
von Pramodkumar J. Sadalage; Martin Fowler
Auflage:
Jahr: 2012
ISBN: 9780321826626
Verlag: Addison-Wesley Educational..
Produkt-Art: Softcover
MongoDB Applied Design Patterns
von Rick Copeland
Practical Use Cases with the Leading NoSQL Database
Auflage:
Jahr: 2013
ISBN: 9781449340049
Verlag: O'Reilly Media, Inc, USA
Produkt-Art: Softcover
© Acando GmbH
22. Literature
MongoDB: The Definitive Guide
von Kristina Chodorow
Powerful and Scalable Data Storage
Auflage: 2
Jahr: 2013
ISBN: 9781449344689
Verlag: O'Reilly Media, Inc, USA
Produkt-Art: Softcover
© Acando GmbH