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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:36:02+00:00 2026-05-12T15:36:02+00:00

If you have a table with at most 10 records and it is referenced

  • 0

If you have a table with at most 10 records and it is referenced in lots of other tables( Via FK relationship) with at least 1,000,000 records in each table .

What will you recommend for type of PK( GUID or tinyint ), if replication is never going to be used?
I have bump into this page with followng excerpt:

Guids on SQL Server can perform FASTER than numeric types, once you exceed
about 100,000 rows on modern hardware. This is due to the indexing
optimizations (cascading of the guid blocks) MS has implemented

is that true that GUID will perform faster in my case?

Thanks in advance 😉

  • 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-12T15:36:02+00:00Added an answer on May 12, 2026 at 3:36 pm

    INT will be faster – no question. And use less space, too (ok, with 10 rows, it’s not a big difference really).

    INT is IMO also a lot easier to use:

    SELECT (list of fields)
    FROM dbo.MyTable
    WHERE ID = 5
    

    is just a whole lot easier to write and memorize than

    SELECT (list of fields)
    FROM dbo.MyTable
    WHERE OID = '8D1E4C8C-54B9-4EB2-B123-FC07E340EC7B'
    

    So I would almost always (in 95%+ of cases) put my vote in for INT rather than GUID.

    Also, because GUID’s as clustered key in SQL Server (which the Primary Key defaults to) are horrible for performance (read this GUIDs as Primary Keys and/or the clustering key blog post by “The Queen of Indexing”, Kimberly Tripp for background info on the topic), I would just try to make it a habit to use INT (possibly: INT IDENTITY) as my primary and clustering key whenever possible.

    Marc

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

Sidebar

Related Questions

I have a table of about 1,000 records. Around half of them will utilise
Hi I have to retrieve from my table most recent records that match a
Most of my content is in a new table I have added to JOOMLA
I have 2 ways of adding images to a table and, which is most
I have created a web page that displays a table. Most of the cells
I have created a web page that displays a table. Most of the cells
What is the most efficient way to drop a table in SAS? I have
I have a database where most tables have a delete flag for the tables.
Most schemas' tables have last_updated_date and last_updated_by columns. I knew how to populate this
I have many tables that use Lookup/Enum references for most of their column values.

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.