Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is index seek and index scan?

Answer Posted / sumit

Index Scan is nothing but scanning on the data pages from
the first page to the last page. If there is an index on a
table, and if the query is touching a larger amount of
data, which means the query is retrieving more than 50
percent or 90 percent of the data, and then optimizer would
just scan all the data pages to retrieve the data rows. If
there is no index, then you might see a Table Scan (Index
Scan) in the execution plan.

Index seeks are generally preferred for the highly
selective queries. What that means is that the query is
just requesting a fewer number of rows or just retrieving
the other 10 (some documents says 15 percent) of the rows
of the table.


In Index Scan the cost is proportional to the total number
of rows in the table. Thus, a scan is an efficient strategy
if the table is small or if most of the rows qualify for
the predicate.


In Index Seek the cost is proportional to the number of
qualifying rows and pages rather than to the total number
of rows in the table.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using stored procedures?

1008


Give an example of why you would want to denormalize a database

1035


What is co-related sub query?

1077


You want to implement the one-to-many relationship while designing tables. How would you do it?

1001


What is sharding?

116


How data can be copied from one table to another table?

1006


Explain the difference between HTTP and HTTPS in database?

1098


Hi all, can any one please tell me the difference between sql server 2008 and orace 9i

2016


What is usually the first word in a sql query?

1178


Explain the cursor lock types?

1101


Explain syntax for dropping triggers?

969


What do you mean by stored techniques? How would we use it?

1086


How to use group functions in the select clause in ms sql server?

1124


How to get a list of columns in a view using "sys.columns" in ms sql server?

1044


Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

1036