database - What kind of index on dates for a emp duty table? -
i have query gets employee duties start date , end date against database. table like
- emp
- duty
- startdate
- enddate
should give indexing dates? kind etc? make things easier on db level (orm level me attribute set).there huge data depending on number of employees off course (expected) , better safe sorry?
please advice.
assuming have primary key on table, use non clustered indices on date fields if need search them oftenly - more important more data have in table.
adding 2 more indexes on table shouldn't hurt (though wouldn't index fields - asking trouble!).
Comments
Post a Comment