Results 1 to 4 of 4

Thread: What is the use of database indexing?

  1. #1
    Join Date
    Apr 2009
    Posts
    68

    What is the use of database indexing?

    I have MySQL Database, and it has thousands of records but the problem is that every record of the database will be listed only it has been entered, I am unable to sort out the database,Can anyone guide me How does a database index work? And what is the use of Database Indexing?

  2. #2
    Join Date
    Apr 2008
    Posts
    142

    Re: What is the use of database indexing?

    Put the most unique data element first in the index, the element that has the biggest veriety of values. The index will find the correct page faster. An index is like a set of pointers to specific rows in a table. These pointers are ordered in terms of the column(s) defined by the index, which makes SQL's scans much more efficient - they just look up the pointers to the rows with the relevant data (based on a WHERE or other clause), and jump right to the row(s). Index is sorted by key values, (that need not be the same as those of the table)

  3. #3
    Join Date
    Dec 2008
    Posts
    120

    Re: What is the use of database indexing?

    Indexes are used to find rows with specific column values fast. The larger the table, the more this costs. If you have multiple indexes on one column each, there will be n sets of pointers to the rows - each ordered by the specific column. Without an index, MySQL has to start with the first record and then read through the whole table to find the relevant rows. As I will discuss later, you should choose your index(es) wisely. If the table has an index for the columns in question, MySQL can quickly determine the position to seek to in the middle of the data file without having to look at all the data.

  4. #4
    Join Date
    Jan 2009
    Posts
    134

    Re: What is the use of database indexing?

    To create a new index, you must own, or have the INDEX object privilege for, the corresponding table. Most MySQL indexes (PRIMARY KEY, UNIQUE, INDEX, and FULLTEXT) are stored in B-trees. Exceptions are that indexes on spatial column types use R-trees, and MEMORY (HEAP) tables support hash indexes. The schema that contains the index must also have a quota for the tablespace intended to contain the index, or the UNLIMITED TABLESPACE system privilege.

Similar Threads

  1. Indexing is not running
    By Ruthe in forum Vista Help
    Replies: 3
    Last Post: 31-12-2012, 11:11 AM
  2. Pagefile with SSD, indexing
    By Kaarunya in forum Windows Software
    Replies: 5
    Last Post: 13-10-2010, 10:29 PM
  3. Replies: 5
    Last Post: 10-08-2010, 05:39 PM
  4. How to use DHTML for indexing of web
    By Kallol in forum Windows Software
    Replies: 5
    Last Post: 04-03-2010, 06:02 AM
  5. Indexing in SQL
    By Henryosa in forum Software Development
    Replies: 5
    Last Post: 23-01-2010, 10:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,563,755.35970 seconds with 17 queries