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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:08:20+00:00 2026-05-28T07:08:20+00:00

In db I have : ( have = existing situation. the DB has already

  • 0

In db I have : (have = existing situation. the DB has already has the data)

Long html string (nvarchar max)

user have :

asp.net aspx page

mission:

extract from the whole html string 1 specific sentence – and show it to user

options :

1) do the strip job in sql and transfer the result to the client

pros: network is not loaded with the whole html – but the result

cons : sql server is working harder

2) send the whole html in the wire to the server and do the job there.

pros : sql is not working too hard , iis do the job with ready-tools ( html agilitypack)

cons : network wire is loaded with unwanted data

which approach is the right one ?

p.s.

lets assume that the hardware is excellent.

  • 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-28T07:08:20+00:00Added an answer on May 28, 2026 at 7:08 am

    If you need to retrieve this specific piece of data repeatedly you should store it separately – in another column on the same table, for example.

    When saving the HTML, extract this piece of information for storage (also on update, to ensure that the information stays in sync).

    I would suggest using an HTML parser like the HTML Agility Pack to parse and query the HTML and doing it in the ASP.NET code that will save to the DB instead of doing it in the DB (as string manipulation does not have great support in databases).

    This has the benefit of only retrieving the data when you need it and processing only when required.

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

Sidebar

Related Questions

We have a situation in our product where for a long time some data
We have an existing situation where we have Apache 2.0 HTTPD acting as the
I have existing Linux shared object file (shared library) which has been stripped. I
For whatever reason, I have a lot of clients that have existing data that's
Good Days, I have recently developed a web application in ASP.NET for a marketer
Here's the situation. The company I work for has quite a bit of existing
I have a situation where the behavior of an existing app is changing and
In a situation where you have a parent class which has one child class,
Interesting situation. I have a Html.Textbox() that I render from a view as follows:
I have a situation where I'm adding existing entities to an entity collection. Before

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.