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

  • SEARCH
  • Home
  • 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 8172001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:38:34+00:00 2026-06-06T21:38:34+00:00

I am designing a oracle database for Timesheet application. I am wondering if it

  • 0

I am designing a oracle database for Timesheet application. I am wondering if it is really necessary to have the foreign key constraints on tables (Master and Child).

As we know that theoretically it is good to have a proper referential integrity on tables but do we really need them?

I heard that foreign keys make the database work extra on every DML operation because it has to check FK consistency. This can reduce the performance. But on the other side it can be helpful in the situation where the primary key has been deleted before inserting a new row in the child table.

Performance is a main issue in the timesheet application and there will be about 250 people filling up their timesheets at the end of the month (possibly at the same time).

If i don’t have a foreign key constraint on table then do i have to check it first (in stored procedure) if the primary key exists in the master table before inserting a new record in the child table each time?

Added: In the past, i have worked with many experience oracle database developer and we never used the foreign key constraints on tables.

  • 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-06-06T21:38:36+00:00Added an answer on June 6, 2026 at 9:38 pm

    I’d say develop the application with foreign key constraints in place, then measure the performance, and if performance is an issue, measure the difference between the DB with FK constraints and without, and if they prove to be a performance issue, consider eliminating them.

    It is unlikely that you’ll find that they are the source of any performance issues, and I wouldn’t recommend omitting them entirely from the outset on the guess that it will lead to better performance.

    You don’t need them, in the same way that you don’t need to validate input, wear safety belts, etc.

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

Sidebar

Related Questions

I am designing a new laboratory database. My primary data tables will have at
I have a Java web application connecting to an Oracle database running on another
I'm designing an application that will use Oracle , and we have this department
We are designing database schema for a new system based on Oracle 11gR1. We
Scenario: I have an application that pulls data from a SQL database as well
I am designing a Web application that we estimate may have about 1500 unique
I have a Rails project which has a Postgres database for the actual application
Designing AIR application which has to have server side push or notification, don't know
When designing a C API for configuring a library/utility, I have a co-worker who
When designing a stock management database system for sales and purchases what would be

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.