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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:36:19+00:00 2026-06-07T03:36:19+00:00

I have four fields in my user table reset_password_code CHAR(128) reset_password_expiry DATETIME email_verification_code CHAR(128)

  • 0

I have four fields in my user table

reset_password_code CHAR(128)
reset_password_expiry DATETIME

email_verification_code CHAR(128)
email_verification_expiry DATETIME

Will it decrease database performance? Is there any best practice to do it?
I am not worried about space but time.

UPDATE:

If I change the CHAR to VARCHAR, will it solve the space issue?

  • 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-07T03:36:21+00:00Added an answer on June 7, 2026 at 3:36 am

    In theory, more fields would mean more space AND more time to access. However, if you’re talking about database design, this is not going to be an issue.

    In reality, you have to be concerned about the number of records and not the number of fields. This is because, as the number of records increase, the search time would also increase.

    This is why we set a suitable field as a primary key. In cases where your search will be on different fields, you may find that you cannot have many primary keys. This is when you use indexes. That is, you should create an index based on the field you’ll use for searching. This is how the efficiency is gained.

    In the past I’ve built MySQL + PHP applications where there were more than 20 million records. And getting around 10,000 records out of it using a search only took less than 10 seconds.

    The secret is not in the number of fields, but in the way you create your index/primary keys.

    So don’t worry about the 4 fields you have 🙂

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

Sidebar

Related Questions

I have a Database named CarsType.accdb there are four fields in the data base
I have 4 text fields horizontally. Each textFiled will allow only four characters. If
I have four email fields in a form, and I want that the user
I have a page where user is provided with four search fields. I am
I have a table it has four fields : Phone_number(primary key),City_name,Category_product and sub_Category I
I currently have a GridPanel with the Ext.ux.RowEditor plugin. Four fields exist in the
I have 50 or 60 records of four or five fields. I need to
i have four tables user-question contains two columns: questionID, userID, the questions that the
My table is having four fields in which two fields are unique. They are
I have a form and it contains four fields. Two of these fields are

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.