IntelliJ Java IDE
The moose likes Oracle/OAS and the fly likes Regarding Index on Table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "Regarding Index on Table" Watch "Regarding Index on Table" New topic
Author

Regarding Index on Table

Ravi Kumar Ravuru
Ranch Hand

Joined: Apr 18, 2002
Posts: 176
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
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: Regarding Index on Table
 
Threads others viewed
Question on garbage collection from Kathy Sierra.
Difference between ArrayList and LinkedList?
If some records are deleted from table but still it is showing in front end than what will be....
where is the index table gone
Bad Performance for JDBC Insert
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture