in reply to Re: speeding up row by row lookup in a large db
in thread speeding up row by row lookup in a large db
Many thanks,
Update: Adding this note to explain more in response to perrin's note. In my original post above I have shown only the SELECTs and mentioned that each SELECT takes about 33 ms. To try and reduce that, I tried converting the result of each select to a BLOB. Since each result is a ref to an array of arrays, I serialized it using Storable with the help of Data::Serializer and INSERTed it into the blobs table. This was stupendously slow. I tried with both transactions (experimented with committing every 10, 100 and 1000 INSERTs) and without transactions. Besides the fact that each BLOB becomes 430 KB, which would result in a db much larger than my laptop's drive if run to completion, fortunately for my laptop, the darn process ran overnight and had done only about 30,000 or so INSERTs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: speeding up row by row lookup in a large db
by perrin (Chancellor) on Mar 21, 2009 at 19:19 UTC |