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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -