what's better way to store a million keys in mem?
- From: "John_Woo" <john_woo@xxxxxxxxxx>
- Date: 17 Jul 2006 07:11:03 -0700
Hi,
A application, needs to check whether a user already logined, by
looking at static var in memory.
I don't have good idea. what's doing is, use Hashmap <not sure
Hashtable is better interms of inserting/removing/finding> to store ID
<string> -- key and status <character> -- value.
question:
what the better way to implement this goal, it should support up to 1
million of keys, in terms of high inserting/removing/finding, and
happened more frequently.
--
Thanks
John
Toronto
.
- Follow-Ups:
- Re: what's better way to store a million keys in mem?
- From: steve
- Re: what's better way to store a million keys in mem?
- From: dsjoblom
- Re: what's better way to store a million keys in mem?
- Prev by Date: Re: Thread.sleep takes lot of CPU time!
- Next by Date: Re: Getting file into an array of byte..
- Previous by thread: Convert eclipse project into Netbeans
- Next by thread: Re: what's better way to store a million keys in mem?
- Index(es):