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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:55:01+00:00 2026-05-27T10:55:01+00:00

what is a good solution for get best performance of SELECTing XML fields?Cosider a

  • 0

what is a good solution for get best performance of SELECTing XML fields?Cosider a table with 100000 record.If I select all table content and create a table variable and then create index on it and then calculate values on it ? or create several index on my xml field and then calculate values?

If any one has better solution please say.

thanks

  • 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-27T10:55:01+00:00Added an answer on May 27, 2026 at 10:55 am

    If you need to extract only certain single values from your XML, you could also investigate this approach:

    • define a stored function that takes your XML as input parameter, and extracts whatever you need to extract from it, and returns an INT or a VARCHAR or something
    • define a computed, persisted column on your base table (where your XML is stored) that calls this function

    Once you have a computed, persisted column, you can easily index that column.

    Unfortunately, this only works if you need to extract a single piece of information from your XML column – it doesn’t work if you need to extract an entire list of values from the XML

    If you need to extract lists of information, then your only real option would be XML indices. In our experience, though – the overhead (in terms of disk space) is extremely high – a database we had went from about 2 GB to over 10 GB when we added a single XML index……. it’s an option and you could try it – but be aware of the potential downsides, too.

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

Sidebar

Related Questions

Okay, I've looked all over the internet for a good solution to get PHP
What's a good solution to parse an RSS/ATOM feed and present the content in
Probably a trivial question, but I want to get the best possible solution. Problem:
I'm looking for best practices and good ideas rather than a proper solution. scenario
I would like to know what is the best way to get all the
Has anybody found a good solution for lazily-evaluated lists in Perl? I've tried a
Does anyone have a good solution for integrating some C# code into a java
Does anyone has a good solution for a C# version of the C++ __FUNCTION__
Does anyone know a good solution for implementing a function similar to Ruby's timeout
Can anyone suggest a good solution to remove duplicates from nested lists if wanting

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.