Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column type for faster Where
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Column type for faster Where
Miscellaneous
Thread ID:
01658642
Message ID:
01658642
Views:
42
Sorry for so many questions this morning. I found a "bottleneck" in my app (not super critical but I need to find a way to deal with it).

If I am to add a column that will have two values, False and True, and build an index on this column, would the column type BIT be the best? In terms of including this column in the WHERE clause? Logically, I think, Bit would be the best, 0 and 1. But there could be a case of making this column Char(1) and storing '0' or '1'.
Which one would give me better performance (speed) in SQL Select?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform