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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:42:59+00:00 2026-05-24T03:42:59+00:00

From my point of view the database is always the bottleneck. Since i can

  • 0

From my point of view the database is always the bottleneck. Since i can scale the cpu power to any needed value. The db ressources are limited even with clustering or replication. I might be wrong here but these are my expierences so far with cloud software.

So I think that to keep relations off the db will save db ressources won’t it ?

For instance if you have a users table and a user_friends table. The foreign key in user_friends is the primary key of the users table. So if I have relations like ON DELETE in the users table -> DELETE FROM user_friends… the database will to the magic to keep consistancy and run all the needed querys. Isn’t it faster if my software will run two simple queries DELETE FROM users WHERE user_id… and DELETE FROM user_friends WHERE friend_id…

The downfall will be possible inconsistancy of course but doesn’t this reduce the DB load at all ?

  • 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-24T03:43:00+00:00Added an answer on May 24, 2026 at 3:43 am

    In my opinion, you should use independent objects (rows) rather than relations so you don’t need to use any complex queries anymore. Besides that, it’ll make it a lot easier to cache your queries (both server-side as db-side).

    To prevent inconsistency, you should use:

    • transactions, so all ‘related’ data-objects are updated.
    • sharding, so you won’t need to scale your db vertically. Horizontally is a lot easier (in most cases).
    • replication, so when a server goes down, your app doesn’t get inconsistent.

    So, basically, it’s probably harder to code, but it’ll get you a better db-design that has an incredible performance and that’s very scalable.

    Btw. if you do consider not to use relations, I’ld recommend you to use a no-SQL-db. SQL-databases are pretty hard to scale (compared to no-SQL-databases) and cause a significant overhead when you don’t use relations (also, compared to no-SQL-databases).

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

Sidebar

Related Questions

(From the point of view of a user, not how it's built or which
Which option is better from Best practices point of view and from performance point
This is very basic question from programming point of view but as I am
In Scala, is it bad, from the point of view of efficacy and speed
Is there any comparison to show why JSP/ASP.Net is better from security point of
What's the best storage mechanism (from the view of the database to be used
coming from node.js point of view, where all code is non-blocking. In Go, non-blocking
I'm wondering which is better approach from performance point of view, is it better
We are building a product, so from performance point of view I need some
One of the most important opportunity TDD gives us, from my point of view,

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.