in reply to Re^2: multi threading DBI
in thread multi threading DBI
Thus BrowserUK is likely correct that relief is likely to be found in stacking up the updates guided by a multi-threaded scraper to a single-threaded DBI queue -- it moves the most likely point of contention and delay outside the loop which constrains the operation which is deemed to be, in the OP's words, "too slow".
However, it is only prudent to point out that if this assumption were to prove to be incorrect, and the user is hoping to improve the speed of the SQLite updates and not merely improve the scraper hang time, that the scraper::queue::DBI model might not produce the gains the OP was hoping for. It's a corner case, almost certainly, but the corner is not imaginary.
I agree that, absent information to the contrary, it is a side note and not the meat of the response. But I don't think sundialsvc4's response is necessarily out-of-band.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: multi threading DBI
by Laurent_R (Canon) on Oct 29, 2013 at 22:43 UTC | |
|
Re^4: multi threading DBI
by BrowserUk (Patriarch) on Oct 29, 2013 at 19:51 UTC | |
by marinersk (Priest) on Oct 30, 2013 at 00:12 UTC |