How many indexes in a table you can have depends on many factors?

          

Interview questions

SQL Server - How many indexes in a table?

Next>>         SQL Server tutorial  

SQL Server - How many indexes in a table? - Feb 27, 2010 at 11:50 AM by Shuchi Gauri

How many indexes in a table you can have depends on many factors. Explain those factors.

Factors on which indexes in a table depend upon:

  • There should be indexes on all primary and foreign keys.
  • You can escape indexing if the table is small i.e. number of rows is very few. In such a case, a table scan will be much faster.
  • Do data modification statements on that table slow down on addition of indexes?
  • Width of indexes.

SQL Server - How many indexes in a table? - May 05, 2009 at 22:00 PM by Rajmeet Ghai

How many indexes in a table you can have depends on many factors. Explain those factors.

  • As the data in a table is modified, each index on the table needs to be updated. This is certainly an overhead. If the data modification queries are slowing down, it means that more indexes are used in the table. 
  • Width of the index also plays an important role. Wider the index, less problematic it is.
  • More the number of modifications on the table in a second, too many indexes cause performance issues. 

SQL Server - How many indexes in a table? - June 21, 2009 at 09:00 AM by Amit Satpute

How many indexes in a table you can have depends on many factors. Explain those factors.

The number of indexes a table can have depends on:

The performance: If a table has too many indexes associated with it, the updates or inserts or deletes on it would slow down.

Index Width: Table with more number of narrow indexes could be less problematic than one with a fewer number of wider indexes.

Modification Frequency: If the table is modified very often, then a high number of indexes could cause a performance problem during the database modification.


Next>>

Also read

What is index? Define its types.

Answer - Index can be thought as index of the book that is used for fast retrieval of information. Index uses one or more column index keys and pointers to the record to locate record.........

Indexing XML data in SQL Server 2005

Explain the concepts of indexing XML data in SQL Server 2005.
Provide basic syntax for creating index on XML data type column.
What is content indexing/full text indexing?
Explain the reason to index XML data type column.
What are the guidelines to be adhered when creating a XML index?..........

Sql Server database maintenance

Explain the concepts of faster differential backups.
Explain the concepts of Parallel Database consistency check (DBCC)
Define Indexed view.
Define Distributed partitioned views.
Define Full-text indexing.
Define Log shipping.............

Indexes - clustered index and non-clustered

Clustered index exists as sorted row on disk.
Clustered index re-orders the table record.
Clustered index contains record in the leaf level of the B-tree.

Index tuning & database partitioning

Index Tuning Wizard is a software application that identifies tables which have inefficient indexes.



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring