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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:07:01+00:00 2026-05-22T02:07:01+00:00

I wonder what is the best way to transfert data from the database to

  • 0

I wonder what is the best way to transfert data from the database to the WCF service to the client between these two options:

Option 1.
I have two tables in my database, “data1” and “data2”.
The to table are linked by “data2Id”. data2Id is not unique and can be linked to more then one DATA.

data1:

dataId | data2Id
----------------
 int   | int   
 int   | int   
 ...   | ...

data2:

data2Id| DATA
----------------
 int   | string
 int   | string

I would then do a SELECT with an INNER JOIN to get the DATA in data2 with the correct dataId. Then, I would send the found strings in a List

Option 2.

data1:

dataId | DATA
----------------
 int   | XML
 int   | XML
 ...   | ...

And the XML would look like that:

<DATA>string</DATA>
<DATA>string</DATA>
<DATA>string</DATA>
<DATA>string</DATA>

I would then SELECT the right DATA with the wanted dataId. Then I would send the XML to the client to parse it.

Does sending a huge list of string trough the WCF to the client would be more or less efficient then sending an XML and parse it client side?

  • 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-22T02:07:02+00:00Added an answer on May 22, 2026 at 2:07 am

    I suppose you always want to do your best to minimise the amount of data going over the wire (within reason of course)

    You need to weigh up the pros and cons of filtering the data on the server (and sending less data over the wire) and filtering the data on the client, which would give you more flexibility (but at a cost as it takes time to send the data over the wire)

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

Sidebar

Related Questions

I wonder what is the best way to organize working with database from C#
I always wonder about the best way to access a class attribute from a
I wonder how's the best way to load sound files in Game? loading from
I wonder if anyone could suggest the best way to go from one color
Whenever I design a database, I always wonder if there is a best way
I wonder what is the best way to sample,say, 1000 questions,completely randomly from Yahoo!
I wonder what is the best way to consume SOAP XML web service with
I wonder how is the best way to integrate Java modules developed as separate
I wonder that what is the best way of writing a component for joomla
I wonder what is the best C# data structure I should use to sort

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.