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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:45:13+00:00 2026-05-30T10:45:13+00:00

I am trying to develop a small app, that will store User’s input about

  • 0

I am trying to develop a small app, that will store User’s input about Videos in an mySQL Database. The problem is that I want Users to have an mySQL Table for each video added.

so my approach is kinda this one

class User < ActiveRecord::Base

  has_many :Videos

end

Example: The web app will gather User’s 56 Input for Video 23 and execute an mySQL query “INSERT INTO video_23_info VALUES …

Each time I add a new video to the database I want a table to be associated with the User.

I don’t know if my approach is correct. I first thought of just using text files, and storing them on the server, into a separate folder or each User, instead of using MySQL.
Any 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-05-30T10:45:14+00:00Added an answer on May 30, 2026 at 10:45 am

    Having a different table for each user would be wrong and a bad practice.

    You could instead create a table videos and keep all videos there:

    Your table could distinguish who uploaded each video through a user id column ie:

    video_id  | user_id | other info
    --------------------------------
        1        100         
        2        200         
        3        100         
    

    So you can then query the table to either select all videos, select a particular users videos alone or anything your imagination can come up with.

    Then you can instead of use table_100 for a user’s videos, just use WHERE user_id = 100 in your query and only get that user’s videos

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

Sidebar

Related Questions

I'm trying to develop small app that will be registered on PhoneStateListener and do
I'm trying to develop a small Stripes project that allows the user to uoload
Small design question here. I'm trying to develop a calculation app in C#. I
I'm trying to develop a small application that tests how many requests per second
I'm trying to develop an application that will use getImageData in javascript in Firefox
I am currently trying to develop a small simulation program in xna that takes
let me try to explain my problem. I'm currently trying to develop a small
I have to develop a small application that will connect to a Linux server
I'm trying to develop a small app like Flash Player updater. I want users
i'm trying to develop a small application that is able to track the position

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.