in reply to Re^2: A per-instance shared queue among forked child processes?
in thread A per-instance shared queue among forked child processes?
I would be very reluctant to use SQLite in such a situation, out of fear that “this is not really the sort of thing that its designers (probably) had in mind.” I am categorically nervous about going too far outside the envelope.
If you have “4,000 inserts to do in 2.5 seconds,” I wonder if you could get away with somehow batching the queue-entries. If there is any sort of queue-buildup at all, maybe you could hold ’em until you’ve got, say, 10 entries accumulated and then drop them into the queue all at once. (They would be dequeued and processed in similar groups.) This would reduce queue overhead by 10% and maybe those microseconds are otherwise adding-up to a useful-to-avoid amount of time. Sometimes they do ...
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A per-instance shared queue among forked child processes?
by BrowserUk (Patriarch) on Apr 05, 2011 at 19:22 UTC | |
|
Re^4: A per-instance shared queue among forked child processes?
by salva (Canon) on Apr 06, 2011 at 07:53 UTC |