Better Place to share Knowledge in MODELING, EXTRACTION, REPORTING - Real time Scenarios with examples and Videos....This blog gives you complete overview of SAP BI....In this blog, you can find articles and step by step procedures to perform specific tasks in SAP BW/BI.
ONE TOUCH WEB LINKS
- Technology Influences
- Digital Inspiration
- SaveDelete
- Blogsdna
- NirmalTV.com
- SHOUTMELOUD
- AmitBhawani
- DEVIL'S WORKSHOP
- Track.in
- BLOGSOLUTE
- 9Lessons
- Wordpress
- ebay
- My Journey To Billionaire Club
- paypal
- BlogSpot
- msn
- live
- Yahoo
- Youtube
- Make My Trip
- NDTV
- BBC
- CNN
- Forbes
- Youngest Blogger
- World Pulse - Community - Connect with women across the globe
- Chillibreeze - Successful Indian Women Enterpreneurs
Showing posts with label INDEXES. Show all posts
Showing posts with label INDEXES. Show all posts
Monday, 19 March 2012
Difference between Primary Index and Secondary Index
Index files are auxiliary file stored in database
used in faster accessing of data, and it is important especially when database
file size growing exponentially. Today world storage is not a problem, but
retrieval/searching on certain criteria is problem.
Index files- Secondary or auxiliary files that help speed up access in primary files
Index files- Secondary or auxiliary files that help speed up access in primary files
Indexes or access structure: data structure -- data structure used for fast access.
Secondary Indexes
A secondary index, put simply, is a way to efficiently access records in a
database (the primary) by means of some piece of information other than the
usual (primary) key. In Berkeley DB, this index is simply another database
whose keys are these pieces of information (the secondary keys), and whose data
are the primary keys. Secondary indexes can be created manually by the
application; there is no disadvantage, other than complexity, to doing so.
However, when the secondary key can be mechanically derived from the primary
key and datum that it points to, as is frequently the case, Berkeley DB can
automatically and transparently manage secondary indexes.
Indexes
We can search a table for
data records that satisfy certain search criteria faster using an index.
An index can be considered
a copy of a database table that has been reduced to certain fields. This copy
is always in sorted form. Sorting provides faster access to the data records of
the table, for example using a binary search. The index also contains a pointer
to the corresponding record of the actual table so that the fields not
contained in the index can also be read.
The primary index is
distinguished from the secondary indexes of a table. The primary index
contains the key fields of the table and a pointer to the non-key fields of the
table. The primary index is created automatically when the table is created in
the database.
Subscribe to:
Posts (Atom)