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

  • Home
  • SEARCH
  • 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 8902891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:43:47+00:00 2026-06-15T01:43:47+00:00

The system I’m working is structured as below. Given that I’m planning to use

  • 0

The system I’m working is structured as below. Given that I’m planning to use Joomla as the base.

enter image description here

a(www.a.com),b(www.b.com),c(www.c.com) are search portals which allows user to to search for reservation.

x(www.x.com),y(www.y.com),z(www.z.com) are hotels where booking are made by users.

  • http://www.a.com’s user can only search for the booking which are in
    http://www.x.com
  • http://www.b.com’s user can only search for the booking which are in
    http://www.x.com,www.y.com
  • http://www.c.com’s user can search for all the booking which are in
    http://www.x.com, http://www.y.com, http://www.z.com

All a,b,c,x,y,z runs the same system. But they should have separate domains. So according to my finding and research architecture should be as above where an API integrate all database calls.

Given that only 6 instance are shown here(a,b,c,x,y,z). There can be up to 100 with different search combinations.

My problems,

Should I maintain a single database for the whole system ? If so how can I unplug one instance if required(EG : removing http://www.a.com from the system or removing http://www.z.com from the system) ? Since I’m using mysql will it not be cumbersome for the system due to the number of records?

If I maintain separate database for each instance how can I do the search? How can I integrate required records into one and do the search?

Is there a different database approach to be used rather than mentioned above ?

  • 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-15T01:43:48+00:00Added an answer on June 15, 2026 at 1:43 am

    The problem you describe is “multitenancy” – it’s a fairly tricky problem to solve, but luckily, others have written up some useful approaches. (Though the link is to Microsoft, it applies to most SQL environments except in the details).

    The trade-offs in your case are:

    • Does the data from your hotels fit into a single schema? Do their “vacancy” records have the same fields?
    • How many hotels will there be? 3 separate databases is kinda manageable; 30 is probably not; 300 is definitely not.
    • How large will the database grow? How many vacancy records?
    • How likely is it that the data structures will change over time? How likely is it that one hotel will need a change that the others don’t?

    By far the simplest to manage and develop against is the “single database” model, but only if the data is moderately homogenous in schema, and as long as you can query the data with reasonable performance. I’d not worry about putting a lot of records in MySQL – it scales very well.

    In such a design, you’d map “portal” to “hotel” in a lookup table:

    PortalHotelAccess

    PortalID   HotelID
    -----------------
    A          X
    B          X
    B          Y
    C          X
    C          Y
    C          Z
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with an upstream system that sometimes sends me text destined for HTML/XML
System.setProperty(file.encoding, utf-8); The comment below implies that file.encoding would be changed for all apps
System.Type contains an UnderlyingSystemType property. MSDN states that it: Indicates the type provided by
System.Web.Mvc has an HtmlHelper that contains a method called EditorFor that renders the editing
System.out.println(Integer.MAX_VALUE + 1 == Integer.MIN_VALUE); is true. I understand that integer in Java is
System.Threading.WaitHandle (and hence ManualResetEvent etc) implement IDisposable explicitly. This seems to discourage it's use
System: Mac OSX 10.6.5, Python 2.6 I try to run the python script below:
System is: SQL Server 2008-R2 I have a table that one of its column
System.Windows.Forms.Form.CancelButton : Gets or sets the button control that is clicked when the user
System.Security.Cryptography.ProtectedMemory is not available in WinRT. Is that functionality made available somewhere else?

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.