Ask a questionAsk a question
 

AnswerBitmap indexing in SQL Server 2008

  • Thursday, October 22, 2009 12:44 PMkailashbk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi All,

    Is it possible to do bitmap indexing in SQL server 2008 ? Please let me know if there are any useful links.

    Regards,
    Kailash

Answers

All Replies

  • Thursday, October 22, 2009 1:11 PMDBAJDS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Kailash,
    No SQL Server 2008 does not have bitmap indexing, however starting with SQL Server 2005 there is a feature called Bitmap filtering.  In SQL Server 2008 the feature has been enhanced somewhat but it still doesn't have the same functionality as a bitmap index.  See the following links for more details:
    Bitmap Indexes and Bitmap Filters
    • Marked As Answer bykailashbk Thursday, October 22, 2009 1:26 PM
    • Proposed As Answer byDBAJDS Thursday, October 22, 2009 1:25 PM
    •  
  • Thursday, October 22, 2009 1:21 PMkailashbk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hey thanks for the reply. 
    Is there any other type of indexes in SQL Server 08 which is not in '05 ?? if not is the performance better in '08 than '05.
    Please let me know the links for indexing in SQL Server 2008 to achieve the best performance.


    Regards,
    Kailash

  • Thursday, October 22, 2009 1:33 PMDBAJDS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    See this link to bol to find info about enhancements in SQL Server 2008:
  • Friday, October 23, 2009 4:15 AMkailashbk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks mate !!!
  • Sunday, November 08, 2009 5:45 PMA.Lockwood Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    As an additional hint to others looking for more indexing options you may want to check out the HASHBYTES function to create unique hashes on BLOB text fields for much faster comparisons.
    There are a few DWs I've setup where this made a huge difference in performance and required storage. Note of course that you have the chance of hash collisions and that it does take CPU time to calculate the hash values prior to loading. Stay away from CHECKSUM.

    Should you use this? "It depends". Test and find out! :)