Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: how to define key for a hash

by davorg (Chancellor)
on Jun 25, 2009 at 12:25 UTC ( [id://774699]=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to define key for a hash
in thread how to define key for a hash

Like I said. Don't populate the hash. Use a database.

--

See the Copyright notice on my home node.

Perl training courses

Replies are listed 'Best First'.
Re^4: how to define key for a hash
by Anonymous Monk on Jun 25, 2009 at 12:33 UTC
    u meant access the database for every lookup that will be more efficient? I am expecting an inflow of data like this 100 file/min 2600 records in each file and this perl script has to execute in every 10-15 mins i have a memory of 64gb.

      I mean that for the amount of data and the complexity of queries that you're talking about, using a database will probably be more efficient than trying to manipulate your own in memory data structures.

      Will it be fast enough on your system? I have no way of knowing. I suggest trying it and seeing what happens. If there's a problem then come back here for performance tuning suggestions.

      --

      See the Copyright notice on my home node.

      Perl training courses

        :( i have my records are coming in unix file system only after this lookup process i have to give the records for some other ksh script. So how can i use a database in b/w u are pointing to sql loader and spooling back ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://774699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-24 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found