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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:07:14+00:00 2026-06-05T16:07:14+00:00

Lets Say i have a table like this WEB_LIST_TABLE KEY Value —————————————- 134 google.com

  • 0

Lets Say i have a table like this

WEB_LIST_TABLE

     KEY             Value
----------------------------------------
     134             google.com
     187             yahoo.com
     353             facebook.com

So on may be a million rows

The keys are primary keys and if i want to Select 50 Rows ,using the key, such as

Select * from WEB_LIST_TABLE where KEY in (134,187,...);

I m using where KEY in for selecting the rows, is it effective, based on performance ..?

Is there any other effective ways to do this?

  • 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-05T16:07:16+00:00Added an answer on June 5, 2026 at 4:07 pm

    This is effective, since field key is indexed. MySQL will use index to get the desired rows.

    mysql>FLUSH STATUS;
    mysql>SELECT * FROM WEB_LIST_TABLE WHERE KEY IN (134,187,192,241,10);
    ...
    mysql>SHOW STATUS LIKE 'Handler_%';
    +----------------------------+-------+
    | Variable_name              | Value |
    +----------------------------+-------+
    | Handler_read_first         | 0     |
    | Handler_read_key           | 5     |
    | Handler_read_next          | 0     |
    | Handler_read_prev          | 0     |
    | Handler_read_rnd           | 0     |
    | Handler_read_rnd_next      | 0     |
    +----------------------------+-------+
    

    As you can see, Handler_read_key is 5.

    According to documentation this means that it read all the five rows based on key.

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

Sidebar

Related Questions

Lets say I have a MySQL table, Users, like this - ----------------------------------------- ID |
Lets say I have table like this: String | Int1 | Int2 "foo" 5
Lets say I have a table like this. A | B ----- 1 |
Lets say i have a table like this: col1 col2 col3 row1 1 null
lets say i have a table like this : a | b | c
Let’s say I have table/list like this n=3 in this case, but n can
Let's say I have a table like this a | b | c |
Let's say I have a table like this: name |order_id ======================= first_record | 0
Let's say I have a MySQL table that is something like this: software table:
the jquery plugin that im using is this http://code.google.com/p/jquery-in-place-editor/ if i have a table

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.