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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:27:22+00:00 2026-05-31T04:27:22+00:00

Tables and its details user table stores user details and have 10 millions record

  • 0

Tables and its details

“user” table stores user details and have 10 millions record

How much time does a query like this take ?

select * from user where user_name = "Jhon"
select * from user where uid = "2331234534"
  • 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-31T04:27:23+00:00Added an answer on May 31, 2026 at 4:27 am

    if you want the query to run with max speed, ensure you have indexes on “user_name” and “uid” and just in case you can add LIMIT 1 at the end of each of them

    they should return result almost instantly with indexes – way below 1 second.

    UPDATE about indexes:
    A very good explanation how indexes work is comparison to a library. If you have huge library with millions of books and you do not have indexes, whenever someone search for a certain book, you need to go through all bookshelfs. If you have indexes, you know that this book is in this certain place and you just go there and take it. That is why it really doesn’t matter that much if you have 1 million or 10 millions or 20 millions. Of course at some point you will have to reduce the size of the table but don’t be worried at all

    UPDATE about indexing all fields:
    you should not index all columns. The reason why is as follows: it is always tradeoff. Indexes speeds up READING from the database greatly, but they slow WRITING to it. Everytime you add a row to the database, index list must be refreshed – that is why you should index only collumns you really need to be indexed

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

Sidebar

Related Questions

I have a table called user_details this table has got morethan 100k user details
I have 2 tables with some columns and another table that I want its
I have a scenario that looks like this: User A is a registered user.
This is probably a newbie question. I have a table USER which contains info
I have created this code its make to store a table in a variable
Consider a table products which has product details including its category. One product may
Does anyone know how Java implements its hash tables (HashSet or HashMap)? Given the
I was wondering how can I list the user tables name with its primary
I have a Yahoo! Group that has its own Database tables for various reasons.
I have a RSS feed i need to display in a table (its clothes

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.