Re: How to persist and query a hash lookup in memory with Perl ?
- From: "J. Gleixner" <glex_no-spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 17:43:39 -0600
Jack wrote:
[...]
So, not using another DB
If you're already using a Database then just store the data there, why
would you use another Database to store it?
>how does one pin and persist and then query a hash in memory using
perl or a perl module.
Whatever 'pin' a hash means.
Why do you want to do this? Maybe that's the real problem. You
think that's what you want to do, but it's really not needed.
You could have a daemon running, that reads/creates the hash and
then it would have the data in memory. You could then then connect
to it via a socket, but why the heck do you want to do all of
that? That's really not Perl 101 and I'm pretty sure you'd
end up spending a lot of time understanding it and trying to get it
working, however it'll take 20-seconds to write and will be very
fast, using a tied hash.
There are a lot of examples online and you can read the documentation
that comes with perl.
perldoc DB_File
If you want to go the whole daemon and IPC/socket route:
perldoc perlipc
.
- References:
- How to persist and query a hash lookup in memory with Perl ?
- From: Jack
- Re: How to persist and query a hash lookup in memory with Perl ?
- From: Gunnar Hjalmarsson
- Re: How to persist and query a hash lookup in memory with Perl ?
- From: jackposemsky
- Re: How to persist and query a hash lookup in memory with Perl ?
- From: Jim Gibson
- Re: How to persist and query a hash lookup in memory with Perl ?
- From: Jack
- How to persist and query a hash lookup in memory with Perl ?
- Prev by Date: Re: SvUOK always fails on 64bit platform
- Next by Date: Re: page 124 of the camel book
- Previous by thread: Re: How to persist and query a hash lookup in memory with Perl ?
- Next by thread: Re: How to persist and query a hash lookup in memory with Perl ?
- Index(es):
Relevant Pages
|