Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3284724
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:11:11+00:00 2026-05-17T20:11:11+00:00

Does it make sense to use a combination of MySQL and MongoDB. What im

  • 0

Does it make sense to use a combination of MySQL and MongoDB. What im trying to do basically is use MySQl as a “raw data backup” type thing where all the data is being stored there but not being read from there.

The Data is also stored at the same time in MongoDB and the reads happen only from mongoDB because I dont have to do joins and stuff.

For example assume in building NetFlix

in mysql i have a table for Comments and Movies. Then when a comment is made In mySQL i just add it to the table, and in MongoDB i update the movies document to hold this new comment.

And then when i want to get movies and comments i just grab the document from mongoDb.

My main concern is because of how “new” mongodb is compared to MySQL. In the case where something unexpected happens in Mongo, we have a MySQL backup where we can quickly get the app fallback to mysql and memcached.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:11:12+00:00Added an answer on May 17, 2026 at 8:11 pm

    On paper it may sound like a good idea, but there are a lot of things you will have to take into account. This will make your application way more complex than you may think. I’ll give you some examples.

    Two different systems

    You’ll be dealing with two different systems, each with its own behavior. These different behaviors will make it quite hard to keep everything synchronized.

    • What will happen when a write in MongoDB fails, but succeeds in MySQL?
    • Or the other way around, when a column constraint in MySQL is violated, for example?
    • What if a deadlock occurs in MySQL?
    • What if your schema changes? One migration is painful, but you’ll have to do two migrations.

    You’d have to deal with some of these scenarios in your application code. Which brings me to the next point.

    Two data access layers

    Your application needs to interact with two external systems, so you’ll need to write two data access layers.

    • These layers both have to be tested.
    • Both have to be maintained.
    • The rest of your application needs to communicate with both layers.
    • Abstracting away both layers will introduce another layer, which will further increase complexity.

    Chance of cascading failure

    Should MongoDB fail, the application will fall back to MySQL and memcached. But at this point memcached will be empty. So each request right after MongoDB fails will hit the database. If you have a high-traffic site, this can easily take down MySQL as well.

    Word of advice

    Identify all possible ways in which you think ‘something unexpected’ can happen with MongoDB. Then use the most simple solution for each individual case. For example, if it’s data loss you’re worried about, use replication. If it’s data corruption, use delayed replication.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does it make sense to simply copy the mysql\data files vs mysql replication between
does it make sense to use KnockoutJS Viewmodels in combination with ASP.NET MVC3 or
does it make sense to use an Filecache when using Sqlite as Database ?
Does it make sense to use RIA Services as a service provider to an
When does it make sense to use Loop fission/distribution if I am compiling for
Does it make a sense to use a build server in a small (2-3
Does it make sense to use shell_qoute from String::ShellQuote when I pass the arguments
Does it make sense to use a ThreadPool with a poolsize of just 1
I'm really interested how lambda functions are used. Does it make sense to use
Does it make sense to use Qt for increasing the productivity in an MFC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.