• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Regarding Index on Table

 
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I would like to know that the effect of index on the table.What does if we create index on the table?Please throw some light on me regarding this and refer some links related to it.
Thanks in Advance.
Ravi
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well for the most part an index is supposed to speed querying the table up. An index stores pointers to rowids. So if you have a where clause that uses a field that is indexed, it can find the match in the index and then use the pointer to fetch the rows.
Whereas if there is no index, a query will have to do a table scan, meaning it will go through each and every record and check to see if each record matches the criteria.
Hope this is close.
Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic