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 6191351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:44:53+00:00 2026-05-24T02:44:53+00:00

For a new project I’m looking to combine MySQL, Sphinx and MongoDB. MySQL for

  • 0

For a new project I’m looking to combine MySQL, Sphinx and MongoDB. MySQL for the relational data and searching on numeric values, Sphinx for free text search and MongoDB for geodata. As far as my (quick) benchmarks shows MongoDB is the fastest for geo queries, sphinx for free text search and MySQL for relational data searches. So to get the best performance I might have to combine them in my project.

There are however three drawbacks to this.

  1. Three points of failure, i.e. Sphinx, MySQL, and MongoDB can crash
    which will stop my site
  2. I need data in three databases and need to keep them up to date
    (all data only changes ones per day so its not the worst problem).
  3. Hardware requirements and mainly RAM is going through the roof
    since all databases wants to have a large portion of the RAM to be
    able to perform.

So the questions is should I combine the three, leave one out (probably MongoDB and use Sphinx for geodata as well) or even go with only one (MongoDB or MySQL)?

To give an idea of the data, the relational data is aprox 6GB, the geodata about 4GB and the freetext data about 16GB.

  • 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-24T02:44:54+00:00Added an answer on May 24, 2026 at 2:44 am

    Didn’t quite understood if the records/collections/documents contained in the 3 dbs have inter-db references. EG if user names, jobs, telephone numbers are in Mysql and user addresses are in Mongo. I’ll assume that the answer is Yes.

    IMHO having 3 different storage solutions is not recommended, because:

    1) (most important) You can not aggregate data from 2 DBs (in a scalable way).

    Example:
    Let’s say that you keep user data (user names) in Mysql and user geo coordinates in Mongo. You can’t query having filters/sorts on fields located on both dbs. For example, you can’t:

    SELECT all users 
    WHERE name starts with 'A'
    SORT BY distance_from_center
    

    Same applies for Sphinx.

    Solution: you either limit to data available on a single DB, or you duplicate/mirror data from one db to another.

    2) Maintenance costs: 3 servers to maintain, different backup/redundance strategies, different scaling strategies; Development costs: developer must use 3 querying libraries, with 3 different ways to query, etc etc.

    3) Inconsistence/Synchronization issues that must be manually dealt with(EG you want to insert data both in mongo and in mysql; let’s say that mongo wrote the data, but mysql raised a referential integrity exception, so now you have an inconsistency between dbs)

    4) About HW costs, the only RAM-eater is MongoDB (the recommendation is that it has to have all indexes in ram). For MySQL and Solr servers, you can control memory consumption.

    What I would do:

    • If I don’t need all the SQL features (like transactions, referential integrity, joins, etc) I would go with Mongo

    • If I need those features, and I can live with a lower performance on geo operations, I would go with MySQL

    • now, If I need (I mean, I really really need) full-text search, and Mongo/Mysql FTS capabilities are not enough, I would attach also a FTS server like Sphinx, Solr, Elasticsearch, etc

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

Sidebar

Related Questions

For a new project with Flash I was looking for something along the lines
I'm starting a new project and although I'm used to MySQL, I'm worried about
I am starting a new project, and I am considering using alias data types
I'm starting a new project in WPF and am now looking into using Prism.
For the new project, I have been searching for a framework with support of
I'm starting a new project and I'm looking into using a dependency container (Castle
My new project is targeting an embedded ARM processor. I have a build system
I'm starting a new project here (Windows Forms). What's the best option today for
We are bringing a new project in house and whereas previously all our work
Starting a new project and would like to use one of the MVC framworks.

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.