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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:51:05+00:00 2026-05-23T11:51:05+00:00

Thinking about a re-design for a database. Wondering what the differences/caveats are to something

  • 0

Thinking about a re-design for a database. Wondering what the differences/caveats are to something like:

users    fields  
-----    ------
id       id
         user_id
         page_id
         field_id
         field_data

as opposed to

users    address  
-----    ------
id       id
         user_id
         street1
         street2
         etc...

Are there issues with using the former that I’m not considering? Is there a performance hit if/when the fields table were to become huge? Is this just bad practice? For some reason this makes me think of nosql, but I could be mistaken.

Thanks!

  • 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-23T11:51:05+00:00Added an answer on May 23, 2026 at 11:51 am

    It’s not entirely clear what you’re showing, but I’ll hazard a guess that the first design doesn’t list the specific address columns, so the idea is to be more generic. The first design will be easier to extend – instead of adding columns, you’re just adding a new field_id, and field data. Having said that you and others using it may find it more of a pain to work with…

    Instead of something like:

    SELECT street1, street2, city, postal_code FROM address where user_id = someval
    

    you’ll do:

    SELECT field_id, field_data FROM fields WHERE field_id in 
    ('street1', street2', 'city', 'postal_code') 
    AND user_id = someval
    

    In the first case it may be easier in a program to assign variables to the results, in the second case it may be a bit more of a pain (depending on the language), since you may have to test each field_id to see what it contains.

    In most cases, I think you should just go with the second approach – especially if you know in advance what most of the fields are. The first approach is more for when you think you’ll need to add many previously-unknown, and unknowable fields later.

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

Sidebar

Related Questions

I am thinking about the design of an iPhone app I'd like to create.
I'm about to start a Database Design that will simply manage users under companies.
I have been thinking about database design lately and I have the following question:
I'm just thinking about MySQL database design and there are often situations where A
I am currently thinking about the database design of a 'friends' table (many-to-many, stores
I have been thinking about design by contract lately and I was wondering what
I am thinking about a DB Design Problem. For example, I am designing this
I've been thinking about this object oriented design question for a while now and
I'm thinking about SEDA. We design at the moment an application (which is running
Maybe the need to do this is a 'design smell' but thinking about another

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.