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 126081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:15:40+00:00 2026-05-11T05:15:40+00:00

Nowadays, I’m working on a database, with no Relations, PKs and FKs, just raw

  • 0

Nowadays, I’m working on a database, with no ‘Relations, PKs and FKs’, just raw data. I can say that database is just set of papers. When I asked about this, I had this; ‘Hide the Business’.

Also, one of my friends said, this always happens in ‘Large systems’.

In large systems, they are tyring to hide thier business through raw data. Regarding development; relations, constraints, validation, are done in database using triggers and of course user interface.

What do you think regarding this?

  • 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. 2026-05-11T05:15:40+00:00Added an answer on May 11, 2026 at 5:15 am

    Well, this may have point on large databases, when you need fast responce on massive DML (INSERT / UPDATE / DELETE).

    The problem is that if you rely on database’s way to ensure integrity, you hardly can optimize it.

    There is also thing called SQL/PLSQL context switching in Oracle: if you create an empty trigger on the table, it will slow down DML about 20 times — with the mere fact that the trigger exists.

    In Oracle, when you write a ON UPDATE trigger and update 50,000 rows in the table, the trigger and the query in it gets called 50,000 times. Foreign keys perform better, but they may also get laggy (and you can do nothing with the underlying queries)

    In this case, it’s better to put the results you want to update into a temporary table, issue a MERGE, check integrity before and after, and apply the business rules. A single query that processes 50,000 rows works faster than a loop of 50,000 queries processing single row.

    Of course, it’s very hard to implement and only pays for itself when you have really large database and need to perform really massive updates on it.

    In Oracle, in any case, FOREING KEY constraints perform better than tiggers implementing the same functionality.

    PRIMARY KEYS will most likely improve performance, as a primary key implies creating the UNIQUE INDEX on the constrained field, and this index may be efficiently used in the queries. A UNIQUE INDEX is also a natural and most efficent way to enforce uniqueness.

    But of course, as any index, is slows down INSERTS and those UPDATES and DELETES whose WHERE condition is not selective.

    I. e. if you need to UPDATE or DELETE 1 row of 2,000,000, then the index is your friend; if you need to UPDATE or DELETE 1,500,000 rows of 2,000,000, the index is your enemy. It’s a matter of tradeoff.

    You may also see my answer here.

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

Sidebar

Related Questions

I know that in C# you can nowadays do: var a = new MyObject
I know that nowadays there is a lot of ready-to-go stuff that you can
Nowadays, I found that there are many apps that can change the theme (change
I know that everyone uses an IDE nowadays, but I just find it simpler
I am studying usage of web services nowadays. Can anyone recommend some free web
There are two things that seem to be popular nowadays and I was wondering
What is the standard nowadays when one needs a thread safe collection (e.g. Set).
I was working on PHP in the past 1 year and nowadays I'm learning
nowadays you can read much about code injection, exploits, buffer-, stack- and heap-overflows etc.
Nowadays, I see a lot of commits from Linus Torvalds and/or Gitster that look

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.