Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 552877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:32:46+00:00 2026-05-13T11:32:46+00:00

I have a query that gets all employee duties for a start date and

  • 0

I have a query that gets all employee duties for a start date and end date against a database.
Basically the table would be like

  • Emp
  • Duty
  • StartDate
  • EndDate

Should I give indexing for dates? what kind etc? to make things easier on db level (orm level for me it would be an attribute to set).There will be huge data depending on number of employees off course (expected) , better safe than sorry?

Please advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:32:47+00:00Added an answer on May 13, 2026 at 11:32 am

    Assuming you have a primary key on this table, I would use non clustered indices on the date fields if you need to search them oftenly – this is more important the more data you have in the table.

    Adding only two more indexes on the table shouldn’t hurt (though I wouldn’t index all fields – that is asking for trouble!).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a master table (hereafter called SURVEY) and a detail table (hereafter called
I have this query below. There are 4 main tables involved: tblOrder, tblItems, tblOrder_archive,
Is there a way to get all the posts from a taxonomy in Wordpress
I have a list like this: Red Red Brown Yellow Green Green Brown Red
I have a data model in Doctrine/symfony. I have a 'Course' which has many
I am working on a wordpress theme and need to select posts that are
I am trying to wrap my head around this one this morning. I am
I am a bit stuck on how I should model this out. Here is
based on How to implement tagging system similar to SO in php/mysql? ive made
This might be a super easy answer, since I'm sure it's not uncommon. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.