|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQLite3 tuning
After running some tests with worker MPM against SQLite3 database, it
turns out that performance can be improved by doing linear backoff in the wait loop (although SQLite is still quite bad when it comes to highly concurrent apps). Patch is attached. Comments? -- Bojan |
|
#2
|
|||
|
|||
|
SQLite3 tuning
Jul 30, 2008, at 3:53 AM, Tom Donovan wrote:
Nevertheless, I also see that SQLite is quite slow for concurrent updates; despite being very fast for reads. SQLite is truly great software, but I totally wouldn't recommend it for high-concurrency apps. -T |
|
#3
|
|||
|
|||
|
SQLite3 tuning
Wed, 2008-07-30 at 06:53 -0400, Tom Donovan wrote:
Calling sqlite3_busy_timeout() in dbd_sqlite3_open might be better than using the do { apr_sleep() } loop in dbd_sqlite3_select_internal. Yeah, true. I may just rework it with that instead. Thanks for the hint! Nevertheless, I also see that SQLite is quite slow for concurrent updates; despite being very fast for reads. Also true, but with the current 100 ms sleep, it is not just slow - it is dead slow. At one point I thought Apache hung or something during my testing, but it was just sleeping for a long time in all of its threads. I switched from the original behaviour to linear backoff, I could get about 40 times as many pages out. Worth fixing. -- Bojan |
|
#4
|
|||
|
|||
|
SQLite3 tuning
Thu, 2008-07-31 at 07:30 +1000, Bojan Smojver wrote:
I may just rework it with that instead. second thought, it may not be that simple, given the DBD mutex we have in place -- Bojan |
|
#5
|
|||
|
|||
|
SQLite3 tuning
Thu, 2008-07-31 at 07:30 +1000, Bojan Smojver wrote:
I could get about 40 times as many pages out. Eh, not true, actually. Never mind - please ignore me :-( -- Bojan |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Apache > SQLite3 tuning |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|