TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 34
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
MongoDB in a nutshell
Share
Copy
Download
1
1769
Published on Nov 18, 2015
No Description
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
MongoDB in a nutshell
for Developers
Photo by
steffenz
2.
Untitled Slide
3.
MongoDB vs RDBMS
Photo by
Will Cyr
4.
Untitled Slide
5.
Untitled Slide
6.
Key features
Photo by
David Gallard (Mr Guep)
7.
High Performance
Support for embedded data models reduces I/O activity on database system
Indexes support faster queries and can include keys from embedded documents and arrays
Photo by
David Gallard (Mr Guep)
8.
High Availability
MongoDB’s replication facility, called replica sets, provide: - automatic failover - data redundancy
Photo by
David Gallard (Mr Guep)
9.
High Availability
MongoDB’s replication facility, called replica sets, provide: - automatic failover - data redundancy
Photo by
David Gallard (Mr Guep)
10.
Replication
Electing primary node
Roles: primary, secondaries, arbiter
Oplog, failover after primary down
Write concern (w:majority, j)
Photo by
John Flinchbaugh
11.
Untitled Slide
12.
Demo time!
13.
Automatic Scaling
Automatic sharding distributes data across a cluster of machines
Replica sets can provide eventually-consistent reads for low-latency high throughput deployments
Photo by
David Gallard (Mr Guep)
14.
Sharding
Vertical scaling vs. sharding
Chunks
Partitioning Strategies: - range based - hash based
15.
Untitled Slide
16.
Chunks strategies
17.
Untitled Slide
18.
Data model
Photo by
arisexpress
19.
Embedding
1:1 or 1:many relationships
Better performance for read operations
Retrieve data in a single database operation
"dot" notation
20.
Untitled Slide
21.
Referencing
Many:Many relationship
Frequently read with rarely accessed sub-doc
Documents related to many others collection
embedding would result in duplication of data without read performance
22.
Untitled Slide
23.
Indexes
Default: _id
Single Field
Compound Index
Multikey Index
Photo by
koalazymonkey
24.
Index Properties
Unique
Spare
Partial
TTL
Photo by
koalazymonkey
25.
Covered Queries
26.
Transactions
Atomic Operations
Possible approaches: - Restructure - Provide transactions on application level - Tolerate
Photo by
TonZ
27.
Transactions
$isolated
Two-phase commit
Photo by
TonZ
28.
MongoDB limits
16MB per document
No multi-row transactions
No foreign keys
Text and Geospatial indexes can't be use at once
Photo by
Curtis Gregory Perry
29.
MongoDB pros
Changeable list of entity properties
Scalability
Object-oriented API
High performance (up to 1000's millions queries/sec)
Photo by
owenwbrown
30.
MongoDB cons
Memory usage
No Joins
Possible data loss
Lack of SQL support
31.
Consider MongoDB
Scaling on demand
Flexible schama
Geo spatial queries
Real-time analytics
Photo by
falequin
32.
Forget about MongoDB when
You will use a lot text indexing
Multi-row transactions are needed
Nanoseconds latency writing is needed (real time tick data)
You want to do a batch processing
Joins across collections is needed
Photo by
fake is the new real
33.
Q & A
@WSztajerowski
Photo by
alexanderdrachmann
34.
Useful links
http://docs.mongodb.org/manual/reference/sql-comparison/
https://docs.mongodb.org/manual
https://university.mongodb.com
https://www.mongodb.com/resource-center
Photo by
Matti Mattila
Friend of Haiku Deck
×
Error!