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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:36:11+00:00 2026-06-05T01:36:11+00:00

I am building a complex plataform, and I want to have a dedicated database

  • 0

I am building a complex plataform, and I want to have a dedicated database for each “module” of it. But I need to have a “master” database which has some common tables like the users table. I need to be able to have foreign keys between tables in multiple databases. (like the user_id)

I know I can have cross database relations if the databases are in the same server which they are right now, but I dont want to be limited by that, since if the application grows alot i might need to separate the databases into multiple servers.

So, I am looking all my options, before taking my decision.

Whats your toughts about this?

I am using mysql.

  • 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-06-05T01:36:12+00:00Added an answer on June 5, 2026 at 1:36 am

    You can do this using the FEDERATED storage engine. What you do is you create a local table utilizing the FEDERATED engine, which in turn will connect to the remote system to resolve queries. I have no idea about the performance of this, though.


    A better approach may be to rethink the application data model. I can understand why you want to have separate databases for each module in a complex system, but it gets hard when you want to share some of the table data. It will be even harder with maintainance if you introduce some restrictions on the data enforced in one module but not in another.

    I think the solution is to separate concerns about the data. Let each module have its own database, but don’t let the modules query others data! If a module needs data about a user, let it fetch it through the user module.

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

Sidebar

Related Questions

I am building an app with complex data which I use arrays for. Some
We are building a fairly complex application that we need to be able to
I am building a pretty complex predicate in several iterations, and want to supply
I'm gradually building quite a complex project. In the process of which I am
I'm building from scratch a web application that is not trivial (have some algorithms
I'm building a complex object in Javascript and I want to expose an iterator
I am building a complex AJAX based solution as a module into a Drupal
I'm currently exploring the different options for building a not-too-complex web application, in which
I am looking for some good tutorials on building complex forms in Access. In
I made a module prototype with the aim of building complex timer schedules in

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.