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

Hashtable question

Is it possible and feasible to load 40,000 records to a hashtable. If this
happened on a page load event would there be performance issues?
What are other alternatives?
Thanks
Steve
Aug 21 '06 #1
3 891
A-yup, its totally possible.

check this out, though:
http://msdn2.microsoft.com/en-us/library/4yh14awz.aspx

"Steve" wrote:
Is it possible and feasible to load 40,000 records to a hashtable. If this
happened on a page load event would there be performance issues?
What are other alternatives?
Thanks
Steve
Aug 21 '06 #2
Thanks David. Since I know the exact number of records and the data will not
be changed in anyway, first priority is fast loading and look up.
There are only 2 columns of data, the first will be the key, the second the
data. Would using an array be slower?
Also I'm not sure how to look up a known key in a hashtable and produce it's
corresponding value. Any ideas?
Thanks again for the link.
Steve

"David Jessee" <Da*********@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
A-yup, its totally possible.

check this out, though:
http://msdn2.microsoft.com/en-us/library/4yh14awz.aspx

"Steve" wrote:
Is it possible and feasible to load 40,000 records to a hashtable. If
this
happened on a page load event would there be performance issues?
What are other alternatives?
Thanks
Steve


Aug 21 '06 #3
somevalue=myHashTable["keyValue"]
the hashing process is all invisible

sounds like you'll want to do a hashtable. the array approach would get
hairy since you're using more than one value.

"Steve" wrote:
Thanks David. Since I know the exact number of records and the data will not
be changed in anyway, first priority is fast loading and look up.
There are only 2 columns of data, the first will be the key, the second the
data. Would using an array be slower?
Also I'm not sure how to look up a known key in a hashtable and produce it's
corresponding value. Any ideas?
Thanks again for the link.
Steve

"David Jessee" <Da*********@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
A-yup, its totally possible.

check this out, though:
http://msdn2.microsoft.com/en-us/library/4yh14awz.aspx

"Steve" wrote:
Is it possible and feasible to load 40,000 records to a hashtable. If
this
happened on a page load event would there be performance issues?
What are other alternatives?
Thanks
Steve
>
>
>


Aug 21 '06 #4

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

Similar topics

1
by: francois | last post by:
Hi, I have a webservice that I am using and I would like it to return an XML serialized version of an object. the class of the object is defined serializable as the following: public...
5
by: francois | last post by:
First of all I would to to apologize for resending this post again but I feel like my last post as been spoiled Here I go for my problem: Hi, I have a webservice that I am using and I would...
5
by: Cyrus | last post by:
I have a question regarding synchronization across multiple threads for a Hashtable. Currently I have a Threadpool that is creating worker threads based on requests to read/write to a hashtable....
33
by: Ken | last post by:
I have a C# Program where multiple threads will operate on a same Hashtable. This Hashtable is synchronized by using Hashtable.Synchronized(myHashtable) method, so no further Lock statements are...
5
by: ad | last post by:
I have a hashtable name myHash. sKey is a string, I use myHash to retrieve the value of that key. But is sKey is not in the myHash.Keys, it raise an Exception. I want to dertiminate if sKey in...
2
by: Ali | last post by:
I am binding a hashTable to a dropDownList to pick a State (key: like New York) and sends the state designation (value: NY) to a filtering procedure. I have entered the states in the hashTable in...
8
by: Robin Tucker | last post by:
When I create a hashtable hashing on Object-->Item, can I mix "string" and "integer" as the key types? I have a single thumbnail cache for a database with (hashed on key) and a file view (hashed...
4
by: Macca | last post by:
Hi, I am using a hashtable as a cache. I am only allowed for the cache to take up a certain amount of memory. I think I can state how large I want the hashtable to be on creation. What I...
2
by: PAzevedo | last post by:
I have this Hashtable of Hashtables, and I'm accessing this object from multiple threads, now the Hashtable object is thread safe for reading, but not for writing, so I lock the object every time I...
2
by: archana | last post by:
Hi all, I am having one confusion regarding hashtable. I am having function in which i am passing hashtable as reference. In function i am creating one hashtable which is local to that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...

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.