Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / September 2005

Tip: Looking for answers? Try searching our database.

File Pointers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HCWDave - 22 Sep 2005 19:08 GMT
Hi,

i have a requirement for building a file for each customer, a customer of
mine has. These files will be between 1 and 5 meg in size each. We could have
anywhere between a few and tens of thousands of files.

We wanted to keep an index loaded in memory which consists of the company
name, company number and the location if their file. Does anyone have any
suggesstions as to the best way to keep this index. Originally I was going to
use an arraylist but i am now reading about the new dictionaries in .Net 2.0.
Initially this index will grow very quickly but once the system is
established it might only grow by 20 or 30 records a day.

SQL is not an option.

Thanks,
Dave
Jon Skeet [C# MVP] - 22 Sep 2005 19:17 GMT
> i have a requirement for building a file for each customer, a customer of
> mine has. These files will be between 1 and 5 meg in size each. We could have
[quoted text clipped - 6 lines]
> Initially this index will grow very quickly but once the system is
> established it might only grow by 20 or 30 records a day.

A simple Hashtable would be fine, I'd have thought, mapping from name
to company record - or number to company record.

Dictionaries themselves have been in .NET from the start - it's just
that they become strongly typed in 2.0 with generics.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

HCWDave - 22 Sep 2005 19:27 GMT
Thanks for the quick response Jon.

Do you know an upper limit for a hastable where performace and searching
starts to degrade?

> > i have a requirement for building a file for each customer, a customer of
> > mine has. These files will be between 1 and 5 meg in size each. We could have
[quoted text clipped - 12 lines]
> Dictionaries themselves have been in .NET from the start - it's just
> that they become strongly typed in 2.0 with generics.
Jon Skeet [C# MVP] - 22 Sep 2005 19:39 GMT
> Thanks for the quick response Jon.
>
> Do you know an upper limit for a hastable where performace and searching
> starts to degrade?

Well, you can test it for yourself - but it'll be a very large number.
Unless you've got well over a million entries, I doubt that you'll see
any problem.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

HCWDave - 22 Sep 2005 19:47 GMT
You rock,

Thanks Again

> > Thanks for the quick response Jon.
> >
[quoted text clipped - 4 lines]
> Unless you've got well over a million entries, I doubt that you'll see
> any problem.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.