in reply to Re: How do I measure my bottle ?
in thread How do I measure my bottle ?
Thanks you and your precious comments again!
I have to state my task formally:
My data files consist of two files transaction_info_file (TranactionID, ... personID ...) and Tranaction_detail_file (TranactionID, productID...) and they are related by one-to-many relationship. My task is to do some JOIN and SELECT/COUNT from those data. It sounds very simple before and I put everything in database with fine tuned indexes. However, size does matter.
Now I use Perl to something like Hash-Join, scan all event_info_file once, put eventid in a seen-hash, then extrieve records from event_detail_file by looking up seen-hash.
I've tried:
by the way, i've tried pre-allocated method such as keys %hash=10_000_000,however, it seems no performance gain. Maybe this function is OS-dependent that it does not work on my windows-activeperl platform.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I measure my bottle ?
by BrowserUk (Patriarch) on Mar 25, 2005 at 19:32 UTC | |
|
Re^3: How do I measure my bottle ?
by eric256 (Parson) on Mar 25, 2005 at 21:50 UTC |