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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:35:39+00:00 2026-06-12T15:35:39+00:00

I have defined various text value by int. I store int value in data

  • 0

I have defined various text value by int. I store int value in data table for better and fast search. I have three options to display text value:

  1. I declare Enum in my codes and display text value according to int value. It is static and I have to change code if new values is to be added.

  2. To make it dynamic, I can store int and text value in a table which is in another database and admin own it. New values can be updated by admin in this table. I use inner join to display text value whenever a record is fetched.

  3. I store actual text in respective data table. This will make search slow.

My question is which option is best to use under following condition?

  1. Data table has more than records between 1 and 10 millions.
  2. There are more than 5000 users doing fetch, search, update process on table.
  3. Maximum text values are 12 in number and length (max) 50 char.
  4. There are 30 data tables having above conditions and functions.
  • 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-12T15:35:40+00:00Added an answer on June 12, 2026 at 3:35 pm

    I like combination of option #2 and option #1 – to use int’s but have dictionary table in another database.
    Let me explain:

    • to store int and text in a table which is in another database;
    • in origin table to store int only;
    • do not join table from another database to get text but cache dictionary on client and resolve text from that dictionary
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with text in various language. Its defined like this: Id|Language|Text
I have defined a table type PL/SQL variable and added some data there. create
I have an RCP application that uses extension points to defined various pluggable bits
I have defined a ConfigurationProperty class, which is basicly a key-value pair (with key
I have various text fields and sometimes their values have hypens/dashes in them, e.g.
I have various roles defined by CanCan in my rails application. I recently implemented
I am playing around with animating text when clicked. I have buttons with various
I have defined following control template for my custom control. <ControlTemplate TargetType={x:Type local:CustomControl}> <Grid
I have defined the following class using COM to use the IGroupPolicyObject using C#.NET:
I have defined the following two functions test <- function(t) { return( (0.5*eta^2/theta)*(1-exp(-2*theta*t)) )

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.