473,395 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Typed Datasets - Performance over WebServices (1 Dst or Various Sm

Hi there,
I have a question that has been raised on how an application should handle
the data that is travelling through a three-layered application.
Our data is going to be handled by Dataset object(s), and the data to be
handled is as follows:

We have N Companies with data, which is distributed among 1 table with all
the data that is similar on all Companies, and 1 table for each Company that
has specific data to store, so in case we want to query the db for some
company we would have to perform our query on those two tables, the main one,
and the specific of that company.

Suggestions has been made on:
1. Having 1 Dataset containing the main table and all of it's siblings
(knowing there will be N of them)
2. Having 1 Dataset containing the main table and 1 Dataset for EACH one of
the siblings,

Is it better to use a typed Dataset mirroring the SQL Server structure (All
tables and relations) or it might be better to send over the WebService 2
Datasets, one containing the non-specific fields and another containing the
specific data fields?
Looking for the best choice available, if there is another way to get this
data over the Webservice resulting in better performance it would be
appreciated.

Thanks in Advance, Iván
Aug 14 '07 #1
3 2107
Depending on how much interoperability you want, you might want to consider
returning collections of objects (representing the datatables) instead. They
should be "slimmer" over the wire. The DataSet is a Microsoft - specific
animal that isn't readily understood by non-MS systems.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Iván Pérez" wrote:
Hi there,
I have a question that has been raised on how an application should handle
the data that is travelling through a three-layered application.
Our data is going to be handled by Dataset object(s), and the data to be
handled is as follows:

We have N Companies with data, which is distributed among 1 table with all
the data that is similar on all Companies, and 1 table for each Company that
has specific data to store, so in case we want to query the db for some
company we would have to perform our query on those two tables, the main one,
and the specific of that company.

Suggestions has been made on:
1. Having 1 Dataset containing the main table and all of it's siblings
(knowing there will be N of them)
2. Having 1 Dataset containing the main table and 1 Dataset for EACH one of
the siblings,

Is it better to use a typed Dataset mirroring the SQL Server structure (All
tables and relations) or it might be better to send over the WebService 2
Datasets, one containing the non-specific fields and another containing the
specific data fields?
Looking for the best choice available, if there is another way to get this
data over the Webservice resulting in better performance it would be
appreciated.

Thanks in Advance, Iván
Aug 14 '07 #2
Hello Peter,
Thanks for your answer, i'm currently getting into the how to's of the
solution you suggested, main problem is, we currently have at our project (in
fact, on all the current projects at our company) a communication library
that works with stored procedures and returns the queried data into a
DataSet. Since using this library is mandatory, i'm fearing that i've to
stick to DataSets to return that data from the data-access layer to the
presentation layer.
If there is a way to manage that data-filled DataSet in the shape of object
collections, i would appreciate some guidelines on how to do it, if there's
no way on accomplishing this task, i'm still looking back at one of the old
solutions, but still don't know what is best to implement.

Regards. Iván

"Peter Bromberg [C# MVP]" wrote:
Depending on how much interoperability you want, you might want to consider
returning collections of objects (representing the datatables) instead. They
should be "slimmer" over the wire. The DataSet is a Microsoft - specific
animal that isn't readily understood by non-MS systems.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Iván Pérez" wrote:
Hi there,
I have a question that has been raised on how an application should handle
the data that is travelling through a three-layered application.
Our data is going to be handled by Dataset object(s), and the data to be
handled is as follows:

We have N Companies with data, which is distributed among 1 table with all
the data that is similar on all Companies, and 1 table for each Company that
has specific data to store, so in case we want to query the db for some
company we would have to perform our query on those two tables, the main one,
and the specific of that company.

Suggestions has been made on:
1. Having 1 Dataset containing the main table and all of it's siblings
(knowing there will be N of them)
2. Having 1 Dataset containing the main table and 1 Dataset for EACH one of
the siblings,

Is it better to use a typed Dataset mirroring the SQL Server structure (All
tables and relations) or it might be better to send over the WebService 2
Datasets, one containing the non-specific fields and another containing the
specific data fields?
Looking for the best choice available, if there is another way to get this
data over the Webservice resulting in better performance it would be
appreciated.

Thanks in Advance, Iván
Aug 14 '07 #3
"Iván Pérez" <Iv*****@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.com...
Hello Peter,
Thanks for your answer, i'm currently getting into the how to's of the
solution you suggested, main problem is, we currently have at our project
(in
fact, on all the current projects at our company) a communication library
that works with stored procedures and returns the queried data into a
DataSet. Since using this library is mandatory, i'm fearing that i've to
stick to DataSets to return that data from the data-access layer to the
presentation layer.
If there is a way to manage that data-filled DataSet in the shape of
object
collections, i would appreciate some guidelines on how to do it, if
there's
no way on accomplishing this task, i'm still looking back at one of the
old
solutions, but still don't know what is best to implement.
Where in your layers are your web services? Are they between the
presentation and data access layers?

If so, and if you are satisfied to use a .NET-only solution, and if you are
using .NET 2.0, then go ahead and send the typed datasets between the
layers. On the other hand, do not add methods to your typed dataset on the
server using a partial class - the client will not be able to see the added
methods, properties, etc.
--
John Saunders [MVP]

Aug 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rob Thomas | last post by:
Hi, I've been tasked to come up with a new architecture for a large application at one of my customer's sites. In the past, I have developed multi-tier applications whereby the business...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
0
by: figital | last post by:
This question is regarding convention. My datalayer has 20 classes in it. Each class has a handful of methods that return datasets. I am looking to make some of these typed datasets (as...
1
by: rival | last post by:
Hi. I've a single solution with many projects. I'm using VS2003 and framework 1.1 1. Data project - contains UserData class, inheriting from DataSet, and setting up constants and columns...
4
by: Ronald S. Cook | last post by:
I've always used untyped datasets. In a Microsoft course, it walks through creating typed datasets and harps on the benefits. It has you drag all these things around ..wizard, wizard, wizard......
1
by: Chris | last post by:
Are there any performance issues with typed datasets in a fairly high performance system?
0
by: DC | last post by:
Hi, I am about (to be forced) to implement a number of webcontrols that display data from various xml sources. The data is to be loaded on the fly, some data is to be cached. The data will...
4
by: newtonwong | last post by:
I have a web reference WSDL, but it doesn't really create an XSD. I'm trying to generate datasets from the WSDL file but not sure how to do so. I successfully created the proxy class, but the...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.