I am trying to decide which approach to take in the database that I am developing. I will add a column ProcessedDate datetime nullto the table. It will be null if the record was not processed. So is it worth having a column Processed bit not null default 0?
With the following queries:
select * from tablename where ProcessedDate is null
and
select * from tablename where Processed = 0
All things being equal *, what is the difference in performance between the two versions?
*: The corresponding indexes apply to the table in each version. I'm not looking for tips on which indexes to create. I need information on filter efficiency in only one line. If all the rows of the table should be scanned or the search is done, this is not relevant to the issue under consideration.
, , Processed , , , ( ). , .