sql - Is it common to accompany views for each table that has a IsActive field? -
i have several tables have isactive column, indicates whether record active or deleted. these tables used frequently.
is common create view each of these tables , select records isactive true? or overkill?
a view stored query-- execute precisely same way whether check isactive in view or in where
clause.
if find using isactive rows more often, have @ filtered indexes. example, have ticketing system 99% of activity related open tickets. able improve performance adding filtered indexes active tickets only.
Comments
Post a Comment