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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:57:06+00:00 2026-05-16T08:57:06+00:00

I have a database where several tables have a column email for storing email

  • 0

I have a database where several tables have a column email for storing email address. Because this is for surveys, a lot of values will be identical, more likely identical over names, addresses, etc.

Should I just have a master Emails table, and then an email_id column? That way I’m only storing email strings once, instead of multiple times in tables. But if I wanted to be sure that I was only storing unique emails, isn’t there some limitation to the length that the index will check a string for uniqueness, therefore I could be storing multiple copies of long email addresses?

In the survey database, we store the email address they submit. If they choose to join a mailing list, we store those uniquely (one email per membership) in a mailing list membership table, so there could be multiple of the same addresses in that table, depending on how many clubs they join. Now I’m adding a table to track bounceback emails, because that’s a property of the email address, not the survey or mailing list membership. And I’m thinking, “This is a lot of string joins!”

Is this a form of the “One True Lookup Table”?

  • 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-16T08:57:07+00:00Added an answer on May 16, 2026 at 8:57 am

    Should I just have a master Emails table, and then an email_id column?

    It doesn’t actually matter very much.

    isn’t there some limitation to the length that the index will check a string for uniqueness, therefore I could be storing multiple copies of long email addresses?

    No. There’s no limitation. Unique means unique, not “unique to some random limit”.

    And I’m thinking, “This is a lot of string joins!”

    So? String joins aren’t horribly slow. If you can prove that these string joins are the worst bottleneck in your application, then replacing string joins with integer FK’s might speed things up.

    Until you can prove that these string joins are your worst problem, don’t worry about them.

    Worry about getting the business rules right for how an email address is used. Don’t optimize until you can prove you have a problem.

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

Sidebar

Related Questions

I have several database tables that just contain a single column and very few
I have a database with several tables. Each of these tables has a column
I have an Access database (in Access 2003) with several tables, and data must
Let's say we have system A comprising a MySQL database, with several tables. After
I have a huge database that has several tables that hold several million records.
I have the requirement to search several different tables in my SQL Server database.
I have a SQL Server Database with several tables. One of them has ID
I have a database with several tables, each one containing columns that may not
I'm using rails 3. In my database I have several tables that work together
I have several tables in my database that have read-only fields that get set

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.