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

The Archive Base Latest Questions

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

I am wondering what thoughts are on the following table structures for MySQL. I

  • 0

I am wondering what thoughts are on the following table structures for MySQL.

I have a relationship between exercises and exercise parameters, where a single exercise can have mutliple parameters.

For example, the exercise ‘sit-ups’ could have the parameters ‘sets’ & ‘reps’.

All exercises start with a default set of parameters. For example: sets, reps, weight, hold & rest.

This list is fully customizable. Users can add parameters, remove parameters, or rename them, for each exercise in the database.

To express this relationship, I have the following one-to-many structure:

TABLE exercises
ID
Name

Table exerciseParameters
ID
exerciseID -> exercises(ID)
Name

What is concerning me, is that I am noticing that even though users have the option to rename / customize parameters, a lot of the time they dont. So my exerciseParameters table is filling up with repeat words like “Sets” & “Reps” quite a bit.

Is there a better way something like this should be organized, to avoid so much repetition? (Bearing in mind that the names of the parameters have to be user-customizable. For example “Reps” might get changed to “Hard Reps” by the user.) (Or am I making a big deal out of nothing, and this is ok as is?)

Thanks, in advance, for your 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:35:09+00:00Added an answer on May 30, 2026 at 10:35 am

    Unless you are dealing with millions of rows, I’d leave the structure as it is. It is straightforward and easy to query.

    If you are dealing with millions of rows and you have measured the storage impact and deem it unacceptable, then you have couple of options (not necessarily mutually exclusive):

    Don’t store the defaults

    If a parameter is not present in exerciseParameters simply assume it has a default value. The actual defaults can be stored in a separate table or outside the database altogether (depending on your querying needs).

    • If user changes the default parameter, store it in exerciseParameters.
    • If user deletes the default parameter, represent it as an exerciseParameters row containing a NULL value.
    • If user restores the default parameter to its original value, remove it from exerciseParameters.

    This exploits the assumption that there will be many more unchanged than either edited or deleted defaults. The cost is in increased complexity (in both modification and querying) and potentially performance.

    Reorganize you data model

    So names (and values) are stored only once, making the repetitions cheaper. For example:

    enter image description here

    ParameterNameID and ParameterValueID are integers, so each repetition in exerciseParameters is much cheaper (storage-wise) than if they were strings. OTOH, you loose simplicity and potentially pay a price in querying performance (more JOINs needed).

    Use a different DBMS

    A one that supports clustering and leading-edge index compression (for example, Oracle’s ORGANIZATION INDEX COMPRESS table can greatly diminish storage impact of repeated values).

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

Sidebar

Related Questions

I am wondering how to do the following- I have the following data: dta
I was wondering if the following will have an effect as I intend it.
Just wondering what everyones thoughts on what ORM to use for SQL Azure? I'm
Just wondering if you had any thoughts on this problem. I want to make
Wondering if any of you can help me: I've made a signup modal that
Wondering if someone could please explain the difference between these two queries and advise
Wondering if someone could help me. I have next to no knowledge with Ajax,
I was wondering about which way i should do the following. I am using
I have a table with about 1000 records and 2000 columns. What I want
I'm wondering if its possible to make the following code more concise: $('#americasTrigger').hover( function

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.