aspose file tools
The moose likes Oracle/OAS and the fly likes indexes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "indexes" Watch "indexes" New topic
Author

indexes

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Please explain how does the index work in database?
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1612
    
  10

The index in a database works in the same way an index would work in a book. It's a way for the DB to retrieve data faster.

In Oracle you can make your own indexes for columns you use a lot, but some are made automatically for columns with Primary Key constraints or Unique constraints.


When you do things right, people won't be sure you've done anything at all.
anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Janeice DelVecchio wrote:The index in a database works in the same way an index would work in a book. It's a way for the DB to retrieve data faster.

In Oracle you can make your own indexes for columns you use a lot, but some are made automatically for columns with Primary Key constraints or Unique constraints.


Can you please elaborate? I want to know how does that work when someone fires a select query?
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
Can you please elaborate? I want to know how does that work when someone fires a select query?


Every database implementation is different. Here's a link that explains how Oracle database does it: http://www.dba-oracle.com/art_9i_indexing.htm
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: indexes
 
Similar Threads
Question on radio button
Same element name in a form to servlet
WA #1.....word association
Printing the index of an array
setting focus to a tab in a JTabbedPane