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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:08:58+00:00 2026-05-26T16:08:58+00:00

On a PHP/MySQL application… We are planning to offer users the ability to create

  • 0

On a PHP/MySQL application…

We are planning to offer users the ability to create simple DataBases.

Let say it can get up to more than 10000 main user accounts and maybe several times more after some years.
What would be the efficient way to go?

A) Create the user defined tables and fields directly into our Application´s DB ?
Wouldn’t that be like… our ~40 tables app´s AND like 10000 user created tables?

I understand that at the moment of querying and usage etc it will be efficient

B) Having tables of tables and fields?
like…

  • table usrtables
  • tabID
  • usrID
  • tabName

    etc.

  • table usrfields

    -tabID

    -fldName

    -fldType

    -fldContent

etc.

thank you very much

  • 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-26T16:08:58+00:00Added an answer on May 26, 2026 at 4:08 pm

    If you want to be a hosted database provider a good idea is to actually give each user their own databases containing their tables, this will be the best for security and scalability.

    Option 1 running all the user in your single database will result in some issues because you will have a lot of tables, but at least you will still be able to scale because as long as each user’s tables are not “talking” to each other (joins), you can shard/partition by user to multiple hosts. You end up with almost the same structure and amount of work as giving everyone their own database in the first place. If you have to do joins across user once in a while this might be a better way.

    Option 2 will cause all users data to mingle togather into huge tables, this will start to cause issue very soon with index write overheads, horizontal partitioning, and lock contention. The way to scalability is to try to break down data to small isolated chunks where possible, this approach is heading to the exact opposite direction.

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

Sidebar

Related Questions

We have an PHP/MySQL application where the users can create their own databases, which
I have a simple page in a PHP/MySQL web application that lets admin users
In a php/mysql application where people can registre, is it a good idea to
I am working with multiple databases in a PHP/MySQL application. I have development, testing,
I'm developing a php / mysql application that handles multiple simultaneous users. I'm thinking
I'm building a PHP/MySQL application and I'm running into a problem with my create
I have two databases in a php / mysql application. One for user data
I am trying to create a form for my php/mysql application. I want my
Working on a web based buying and selling application with PHP MySQL where users
hi i created a simple php/mysql/Ajax chat application and I have a few questions.

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.