Relational databases are being pushed beyond their limits because of the way we build and run applications today, coupled with growth in data sources and user loads. To address these challenges, many companies, such as MTV and Cisco, have migrated successfully from relational databases to MongoDB.
Even if you are not yet at capacity limits, you should learn about a modern database that has a built-in automated failover process, automatic sharding, and native tools that help you to explore your data and understand its structure.
In this webinar, we walk through step by step how to migrate from a relational database to MongoDB. We start off by covering schema design and performance aspects and then dive into operational aspects, such as performing seamless migrations without downtime.
Topics covered include:
Schema Design
Data Migration
Operational Agility at Scale
1 of 115
More Related Content
Best Practices for Migrating RDBMS to MongoDB
1. Best Practices for Migrating
From RDBMS to MongoDB
Sheeri Cabral, Product Manager, Distributed Systems
2. Safe Harbor Statement
This presentation contains forward-looking statements within the meaning of Section 27A of the
Securities Act of 1933, as amended, and Section 21E of the Securities Exchange Act of 1934, as
amended. Such forward-looking statements are subject to a number of risks, uncertainties, assumptions
and other factors that could cause actual results and the timing of certain events to differ materially from
future results expressed or implied by the forward-looking statements. Factors that could cause or
contribute to such differences include, but are not limited to, those identified our filings with the Securities
and Exchange Commission. You should not rely upon forward-looking statements as predictions of future
events. Furthermore, such forward-looking statements speak only as of the date of this presentation.
In particular, the development, release, and timing of any features or functionality described for MongoDB
products remains at MongoDBs sole discretion. This information is merely intended to outline our general
product direction and it should not be relied on in making a purchasing decision nor is this a commitment,
promise or legal obligation to deliver any material, code, or functionality. Except as required by law, we
undertake no obligation to update any forward-looking statements to reflect events or circumstances after
the date of such statements.
3. Agenda Normalization and MongoDB
Schema Design and Performance
Seamless no-downtime Migration
Q&A
60 minutes
21. What problems
does normalization solve?
Duplicate data leads to
data integrity
problems when doing updates
Hard to update a
multi-value data cell
22. What problems
does normalization solve?
Duplicate data leads to
data integrity
problems when doing updates
Hard to update a
multi-value data cell
Duplicate data
wastes resources
34. // Get the user object
> user = db.user.findOne({username: sheeri});
articles
users
35. // Get the user object
> user = db.user.findOne({username: sheeri});
// Get all the articles linked to the person
> myArticles = db.articles.find({_id: {
$in : people.articles.map(authorId => user._id) } } )
articles
users
36. // Get the user object
> user = db.user.findOne({username: sheeri});
articles
users
37. // Get the user object
> user = db.user.findOne({username: sheeri});
// Get all the articles linked to the person
> myArticles = db.articles.find({_id: {
$in : people.articles.map(authorId => user._id) } } )
articles
users
49. Relational MongoDB
Thinking in Documents
https://www.mongodb.com/blog/post/thinking-documents-part-1
6 Rules of Thumb for MongoDB Schema Design
https://www.mongodb.com/blog/post/6-rules-of-thumb-for-mongodb-
schema-design-part-1
75. What about transactions?
Atomicity
succeeds or fails completely
Consistency
db from one valid state to another
Isolation
how/when changes are seen by ops
Durability
completion is forever
110. Schema Patterns
Polymorphic
flexible schema
subset
part of data is duplicated by embedding
outlier
a few documents will overflow
Building with Patterns blog series:
https://www.mongodb.com/blog/post/building-with-patterns-a-summary
extended
reference
not just _id
112. From RDBMSto MongoDB
Documents do not need to have
identical fields
Data that is accessed together
should be stored together
113. From RDBMSto MongoDB
Documents do not need to have
identical fields
Data that is accessed together
should be stored together
Rethink if you have lots of
references or transactions
114. Credit, Thanks and Links
Asya Kamsky
Evin Roesle
Nick Larew
Aly Cabral
Wikipedia
Thinking in Documents
https://www.mongodb.com/blog/post/thinking-documents-part-1
6 Rules of Thumb for MongoDB Schema Design
https://www.mongodb.com/blog/post/6-rules-of-thumb-for-mongodb-
schema-design-part-1
Building with Patterns blog series:
https://www.mongodb.com/blog/post/building-with-patterns-a-summary