473,385 Members | 1,356 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.

Data Design

Hi,

I am wondering if I use a hashtable instead of a dataset to hold data in my
app will have less overhead and better performance? I am really looking for
a data container where I can use a key to retrieve the data (rather not use
a 2-dimensional array).

Thanks
Nov 15 '05 #1
4 1277
If your data is just made up of key/value pairs, then yes, I would recommend
the hashtable.

"Kevin" <ke*@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I am wondering if I use a hashtable instead of a dataset to hold data in my app will have less overhead and better performance? I am really looking for a data container where I can use a key to retrieve the data (rather not use a 2-dimensional array).

Thanks

Nov 15 '05 #2
Thanks for the post. What my app does is when the user selects an option it
goes to the db and retrieves data pertaining to that option. There are
several options the user has to select. In my Business objects, I really
need a data container of this data (perferably one column of data) so the
app can easily extract this data to do some business calculations with the
data. The reason I thought using a hashtable because it will be easy to
extract the data versus using a DataView object to extract it from a
dataset. And if I used a dataset I would have to merge datatables retrieved
from the db and then extracting the data I would have to map to correct
tables. Also, none of this data will be persisted to a database. Is my
reasoning correct to use a hashtable?

Thanks

"Marina" <so*****@nospam.com> wrote in message
news:u7*************@tk2msftngp13.phx.gbl...
If your data is just made up of key/value pairs, then yes, I would recommend the hashtable.

"Kevin" <ke*@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I am wondering if I use a hashtable instead of a dataset to hold data in

my
app will have less overhead and better performance? I am really looking

for
a data container where I can use a key to retrieve the data (rather not

use
a 2-dimensional array).

Thanks


Nov 15 '05 #3
Yes, I would agree. Seems your data requirements are very simple, and the
full capabilities of the dataset will only make things more difficult.

You might to wrap up all the database access, and then hashtable
population/retrieval code, so that if you ever do want to change the
implementation under the hood, you would only need to change it in a few
places and the rest of your code would still work.

"Kevin" <ke*@yahoo.com> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Thanks for the post. What my app does is when the user selects an option it goes to the db and retrieves data pertaining to that option. There are
several options the user has to select. In my Business objects, I really
need a data container of this data (perferably one column of data) so the
app can easily extract this data to do some business calculations with the
data. The reason I thought using a hashtable because it will be easy to
extract the data versus using a DataView object to extract it from a
dataset. And if I used a dataset I would have to merge datatables retrieved from the db and then extracting the data I would have to map to correct
tables. Also, none of this data will be persisted to a database. Is my
reasoning correct to use a hashtable?

Thanks

"Marina" <so*****@nospam.com> wrote in message
news:u7*************@tk2msftngp13.phx.gbl...
If your data is just made up of key/value pairs, then yes, I would

recommend
the hashtable.

"Kevin" <ke*@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I am wondering if I use a hashtable instead of a dataset to hold data
in my
app will have less overhead and better performance? I am really
looking for
a data container where I can use a key to retrieve the data (rather
not use
a 2-dimensional array).

Thanks



Nov 15 '05 #4
Yes I do seperate my app into tiers UI, BO, DataAccess. It is always nice
to bounce ideas of someone.

Thanks again

"Marina" <so*****@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes, I would agree. Seems your data requirements are very simple, and the
full capabilities of the dataset will only make things more difficult.

You might to wrap up all the database access, and then hashtable
population/retrieval code, so that if you ever do want to change the
implementation under the hood, you would only need to change it in a few
places and the rest of your code would still work.

"Kevin" <ke*@yahoo.com> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Thanks for the post. What my app does is when the user selects an option
it
goes to the db and retrieves data pertaining to that option. There are
several options the user has to select. In my Business objects, I really need a data container of this data (perferably one column of data) so the app can easily extract this data to do some business calculations with the data. The reason I thought using a hashtable because it will be easy to
extract the data versus using a DataView object to extract it from a
dataset. And if I used a dataset I would have to merge datatables retrieved
from the db and then extracting the data I would have to map to correct
tables. Also, none of this data will be persisted to a database. Is my
reasoning correct to use a hashtable?

Thanks

"Marina" <so*****@nospam.com> wrote in message
news:u7*************@tk2msftngp13.phx.gbl...
If your data is just made up of key/value pairs, then yes, I would

recommend
the hashtable.

"Kevin" <ke*@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I am wondering if I use a hashtable instead of a dataset to hold

data in my
> app will have less overhead and better performance? I am really looking for
> a data container where I can use a key to retrieve the data (rather not use
> a 2-dimensional array).
>
> Thanks
>
>



Nov 15 '05 #5

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

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
6
by: blueblueblue2005 | last post by:
here is a friend function of Class Array, which has two private data member: int size, int *ptr // Array's public member function to return size int getSize() const { return size; } friend...
7
by: mittal.pradeep | last post by:
What is the better table design for a data collection application. 1. Vertical model (pk, attributeName, AttributeValue) 2. Custom columns (pk, custom1, custom2, custom3...custom50) Since the...
10
by: heromull | last post by:
We have an asp.net app with about 200 data entry forms. Customers may enter data into any number of forms. Each form's data is persisted in a corresponding sql table. When data entry is...
2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
3
by: zc2468 | last post by:
I am new to dot net and would like to write an application using a solid 3 tier design because I expect the app to require a lot of updates and maintenance over time. I am creating my own data...
5
by: Tina | last post by:
I'm reading about the "3-tier" design afforded by using Object Data Sources in the App_Data folder in 2.0 asp.net projects. To me, putting an object data source in a separate folder on the web...
7
by: Matik | last post by:
Hi to everyone, My problem is, that I'm not so quite sure, which way should I go. The user is inputing by second part application a long string (let's say 128 characters), which are separated...
2
by: Random | last post by:
Here's a design question I'm curious to know if anyone here has wrestled with before... I'm writing my data access methods in classes in the App_Code directory. I know that I can easily...
9
by: =?Utf-8?B?VGVycnk=?= | last post by:
Think it is great the way that you can set up a datsource, value member, and display member for a combobox, and map a 'code' to a 'description' and back again by binding the combobox to a...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.