Hi, I have a table with column isprocessed bit null. I have created an index(non clustered) on this column. Before applying index query
**`SELECT top 5000 * From Request Where IsProcessed Is Null`**
took 30 to 40 seconds. Remember this is very huge table with rows over 10 million. Now after creating index on isprocessed column same query has shown no performance boost.
I tried another query **
;With TopN As(SELECT Top 5000 * from Request Order By IsProcessed)
SELECT * From TopN Where IsProcessed Is Null
** Now this query suprizingley gives output in less than 2 seconds I wonder why is there any perforamnce difference in two queries. Also what is the indexing behavior on bit null columns