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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:53:06+00:00 2026-05-28T02:53:06+00:00

Now I am looking for your help to create index on these. Now this

  • 0

Now I am looking for your help to create index on these.

Now this is my table structure

table description screen cap

This the query I need index for maximum performance.

select PageId 
    from tblPages 
    where UrlChecksumCode = @UrlChecksumCode 
        and PageUrl = @PageUrl

Now I am very bad with indexes. I plan like that when the query is executing it will find first that UrlChecksumCode rows then look pageurl columns. If you also explain me why to make such index I really appreciate that. Thank you.

  • 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-28T02:53:06+00:00Added an answer on May 28, 2026 at 2:53 am

    one way, since your pageURL is long(nvarchar(1000) and an index can only be 900 bytes if you don’t use included columns, I have created this index with included columns

    create index ix_IndexName on tblPages (UrlChecksumCode) INCLUDE(PageUrl)
    

    or

    create index ix_IndexName on tblPages (UrlChecksumCode) INCLUDE(PageUrl, PageID)
    

    See also SQL Server covering indexes

    why is URL nvarchar instead of varchar…can they be unicode? if not make it varchar and save 1/2 the size

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

Sidebar

Related Questions

Afternoon all, I really need your help as this is a Nightmare! I was
I need your help :) I have a table in a database (SQL Server
I asked this question a while back but now I'm looking to implement an
I now this has been asked a thousand times but that doesn't help me
I would need your help with a looping issue, it's so annoying when the
I need your help. Sadly I don't know SQL as well as I do
I'm recently started to learn Twisted framework and now looking for some cheat sheets/reference
I've recently started down the road of programming in Objective-C, and I'm now looking
I've got Dim Tables, Fact Tables, ETL and a cube. I'm now looking to
For our site, Im using a lot of jQuery - right now Im looking

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.