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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:58:07+00:00 2026-05-12T10:58:07+00:00

I heard that SQL is faster if table relationships are defined. Is this true?

  • 0

I heard that SQL is faster if table relationships are defined.

Is this true?

Or maybe it’s slower, I would like to know.

  • 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-12T10:58:08+00:00Added an answer on May 12, 2026 at 10:58 am

    My guess is that you’re talking about foreign keys. This is also known as referential integrity, and is one kind of constraint. Foreign keys are not the only kinds of constraints–you can have unique and check constraints, as well. Anyway, referential integrity is slightly slower for inserts, and not faster at all for selects.

    The reason is that it has to check inserted values to ensure that they exist in the other table.

    If you want to improve the performance of select queries, you want to put indices on columns that you’ll be joining and filter on. However, indices do come at a cost, as they slow down inserts, updates, and deletes, because the indices have to update every time the table changes like that.

    So, if your table is high volume insert/update, don’t add too many indices. If your table is predominantly select, use indices where you can. The Database Engine Tuning Advisor can help you define those indices for some of your most common queries, as well.

    Ensure that you use the Query Execution Plan when running your queries (Ctrl + L in SSMS) so that you can see what SQL Server is doing. You want as many seeks as possible, as that means that it’s able to use an index most efficiently!

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

Sidebar

Ask A Question

Stats

  • Questions 226k
  • Answers 226k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer float != Vector4. Your whole class (IShader), is templated on… May 13, 2026 at 1:13 am
  • Editorial Team
    Editorial Team added an answer From looking at the documentation: http://ellislab.com/codeigniter/user_guide/general/routing.html It looks like what… May 13, 2026 at 1:13 am
  • Editorial Team
    Editorial Team added an answer The AJAX request happens asynchronously - you're not waiting for… May 13, 2026 at 1:13 am

Related Questions

I'm working on porting a large vb6 application to .NET. The current app is
I have the 4 sources of IP addresses , I want to store them
If I have a sql query that uses 'distinct' (in oracle), would it be
I'm starting a new project here (Windows Forms). What's the best option today for

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.