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 ?