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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:15:32+00:00 2026-06-17T22:15:32+00:00

Ok I am making a project on a DTH management system. I am using

  • 0

Ok I am making a project on a DTH management system. I am using MySQL DB and Java GUI. The problem is that I have to make the DB such that everytime I add a user, a set of tables must be inserted (e.g 30 days, one table for each day) to add values. This new table will have the same format for all users, the only thing is the column values will be changing. It’s like a Matrix where top horizontal row is for timings and left vertical row for channel name and if a user is watching a show on channel 9 at 9pm, then the cell (channel9, 9) will have a value 1, else 0. This has to be done for each day.

My question is simple how do you do this!!
Secondly what will be the load on the system. As in the GUI must not crash or take a huge amount of time to access the data.

Is there any other method to do this more easily and efficientl.

Please help. 🙂

  • 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-17T22:15:33+00:00Added an answer on June 17, 2026 at 10:15 pm

    Reasons not to dynamically create tables:

    1. You will ended up with orphaned tables. For example, a user signs up and then deletes his account. What do you do with all his tables?

    2. The schema will change. Your table design is good now, but I guarantee you’ll want to change it later. How do you update 10,000 tables automatically? (It’s possible to script, but unpleasant.)

    3. Everything has limits. I don’t know what the table limit might be for MySQL, but I would guess with decent activity, you’ll hit it.

    4. It will be very hard to re-factor. If you hit 1-3 and decide it was a bad idea, it will take quite some time to change.

    If you absolutely can’t figure out a way to store what you have in MySQL … as a last resort you could always serialize your object into something like JSON and put that result in a field. Very quick and easy to do and doesn’t require a million tables.

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

Sidebar

Related Questions

When i'm making a project with openni. And have a problem when i make
I am making a project posting system that will have somewhat some markup, similar
I'm making a project using GAE, and have a terrible problem. I wanted to
I have a little problem, I'm making project and I'm sending data from client
I am making a project that should compile on Windows and Linux. I have
I am making a project that sells product and I want to have a
I am making a project that uses Autoconf. I have the following in configure.ac
I'm making a project for college, where I have to make my own primitive
Problem I am making a project using Q_OBJECT and Q_PROPERTY to access some objects
I have an old project that is using iTextSharp library for PDF generation. iTextSharp

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.