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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:36:15+00:00 2026-06-16T06:36:15+00:00

We are building our site and we are constantly adding new universities. I have

  • 0

We are building our site and we are constantly adding new universities. I have a class that manages a lot of this. The question is, when people register, should we store the university they attend as the full string in the database, or convert each university to a unique int and store this, or create a new table of all the universities and just add them in manually as we add more schools to our system, then just store the primary_key of the chosen school in the users table? The easiest would be just to store the string. But I feel this may be inefficient.

  • 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-16T06:36:16+00:00Added an answer on June 16, 2026 at 6:36 am

    I think storing the full string every time is very inefficient. I would tackle this by storing just the universityId number for each user, and then use SQL querys to retrieve whatever information you need.

    This way you will avoid duplicity in your data (e.g.: Different users from the same university entering different strings)

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

Sidebar

Related Questions

I am building a multi-language site using codeigniter I have this language file $lang['prot_home_1']
I'm building an activity stream for our site, and have made some decent headway
We are considering migrating our site from flash to silverlight, and also building additional
I'm working on building a mobile friendly site of our companies main website. The
I am building out some reporting stuff for our website (a decent sized site
Background: We're building an application that allows our customers to supply data in a
Good day all, I am tasked with building a slider for our site. Here
I am writing a comparison between 3 technology options for building our new website:
I'm building a custom autocomplete for a search box on our site. I've coded
I'm currently in the process of building our ASP.NET C# 3.5 Web site and

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.