473,385 Members | 1,492 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,385 software developers and data experts.

Classes and collections vs. virtual tables (datasets)

We are developing an application (using .Net in MS Studio 2003 using the
Access jet engine as a backend) that is doing quite a bit of number
crunching. The first part of the application was written using collections,
but we have now found that manipulating the data in virtual tables
(datasets) seems a better way to go. However, we have not attempted to
rewrite the previous code to compare the processing of one compared to the
other. Has anyone else had experience with this?
Apr 25 '06 #1
5 1286
Hi M Harris,

I had the the opposite experience. I started storing data into datasets
and datatables. But after some experiments returned to the simple and
effective arraylist, unbeatable as to performances... :)

Anyway, in general, probably the best decision depends on the general
architecture of you program and for the tasks you have to do. My
current thinking is that one should use the dataset only if he has to
maintain a sort of local database (tables, relationships,...) ...
Personally, I tend to stay far from datatables when possible ...

just my 2 cents

-tom

Apr 25 '06 #2
M Harris,

Datasets and Datatables are a kind of ultime implementations of Classes
which holds collections.

With that taking all the overhead from those classes which simple arrays
don't have.

Therefore if you want only an simple array, than you can use a simple
collection. If you want an class which has everything that you need to
handle data in it, than you can take a dataset (although it is in my opinion
not yet ready, there can be even more in it).

I hope this helps,

Cor

"M Harris" <mh*****@revenue.state.il.us> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
We are developing an application (using .Net in MS Studio 2003 using the
Access jet engine as a backend) that is doing quite a bit of number
crunching. The first part of the application was written using
collections,
but we have now found that manipulating the data in virtual tables
(datasets) seems a better way to go. However, we have not attempted to
rewrite the previous code to compare the processing of one compared to the
other. Has anyone else had experience with this?

Apr 26 '06 #3
This is the same as

what is better a speedboat or a cruise liner ?

well if you want to go fast from a to b on a short distance i would prefer
the speedboat , however for crossing the ocean i would go for the cruise
liner

my personal aproach is :

go for the most lightweight aproach when apropriate and possible and now
when to hump on the cruiseliner ( you see often people extend there
speedboat untill it is almost sinking on its weight , it would have been
better to use the cruiseliner instead )

regards

Michel Posseth [MCP]
"M Harris" <mh*****@revenue.state.il.us> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
We are developing an application (using .Net in MS Studio 2003 using the
Access jet engine as a backend) that is doing quite a bit of number
crunching. The first part of the application was written using
collections,
but we have now found that manipulating the data in virtual tables
(datasets) seems a better way to go. However, we have not attempted to
rewrite the previous code to compare the processing of one compared to the
other. Has anyone else had experience with this?

Apr 26 '06 #4
Lol but true, do you maybe have a free sight on the harbour?

Cor
Apr 26 '06 #5
Lol but true, do you maybe have a free sight on the harbour?


No.... but i live nearby the harbour ( a view to the harbour has a big
price these days in Rotterdam :-)

regards

Michel

"Cor Ligthert [MVP]" <no************@planet.nl> schreef in bericht
news:e9**************@TK2MSFTNGP05.phx.gbl... Lol but true, do you maybe have a free sight on the harbour?

Cor

Apr 26 '06 #6

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

Similar topics

1
by: Invalidlastname | last post by:
Hi, I have some questions regarding to use vs.net to generate xsd from database tables then generate classes, not typed datasets, from the xsd. Basically I want to have some light-weigh classes...
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...
7
by: rodchar | last post by:
hey all, i was checking out time tracker on asp.net one of the starter kit projects. i was wondering why the users datagrid gets loaded the way does. first it pulls all the users in from a...
6
by: Geoff Pennington | last post by:
I have a class method that returns a DataAdapter. I want to access the table(s) contained in the DataAdapter. Of course, accessing the DataSets would be good enough, because I could get the tables...
1
by: Raju Joseph | last post by:
Hi All, We are in the process of developing an N-Tier app using VB.NET. We are extensively using classes (entity objects) in our design. Further, most of the times, we do have to specify nested...
3
by: Dave | last post by:
Please - anyone that can help. I am getting confusing results while trying to expose a collection from a web service. I have a webservice in which a web method accepts a collection as a...
4
by: John Dalberg | last post by:
I noticed the starterkits timetracker & issue tracker load data from a database into custom collections (arraylists) which bind to a datagrid. What are the advantages of using custom collections...
1
balabaster
by: balabaster | last post by:
I have a database with two main tables, we'll call them A and B. The relationship between the two main tables is by nature a many-to-many relationship, so to normalize and avoid the many-to-many...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.