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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:50:21+00:00 2026-06-16T04:50:21+00:00

I have two tables: auth contains authentication information users contains user profile information auth

  • 0

I have two tables:

  • auth contains authentication information
  • users contains user profile information

auth has a username column. This serves as both a login credential and as part of the user’s profile URL (e.g. example.com/profiles/username).

When retrieving a list of users, their username is required to make the URL to their profile. Currently, I query the users table and join the auth table to get this info. However, that join can be avoided if username is also a column in users, making two identical columns in two different tables.

I don’t like the idea of a duplicate column, but one less join is always good. Is this a sign that the database schema (or something else) needs to be reworked, or is this an example of a case where redundancy is acceptable?

  • 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-16T04:50:22+00:00Added an answer on June 16, 2026 at 4:50 am

    Normalizing your schema (i.e. removing redundancy) is not designed to address efficiency in time, but rather a) efficiency in space (by eliminating duplicate copies of data) and b) consistency (by not storing the same information in multiple places, you do not run the risk of having them not agree). From that perspective, having to use a join is the cost of these other benefits.

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

Sidebar

Related Questions

I have two tables, a user table and a application table: User id username
I have two tables User ID UserName 1 Name1 2 Name2 3 Name3 4
Have two tables with a linking table between them. USERS +-------+---------+ | userID| Username|
I have two tables USERS and CALENDER, in calender table user place his availability
I have two tables. User table has user_id and order_num Orders table has order_num,
I have the following two tables: auth_user id username is_active (boolean) ... useprofile_userprofile id
I have two tables user table user_id | name | 1 | peter |
Have two tables say ABC and XYZ and contain one column which data will
I have two tables. Table1 contains companies whose locations are georeferenced with lat/lng coordinates
I have two tables i.e. Users uid | firstname 1 | John 2 |

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.