[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32234: [PATCH 2/2] database: Serialize all database accesses in a th
From: |
Clément Lassieur |
Subject: |
bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread. |
Date: |
Mon, 06 Aug 2018 21:35:08 +0200 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Hi,
Clément Lassieur <address@hidden> writes:
[...]
> bin/cuirass.in | 23 +-
> src/cuirass/base.scm | 94 +++----
> src/cuirass/database.scm | 550 +++++++++++++++++++++------------------
> src/cuirass/http.scm | 136 +++++-----
> src/cuirass/utils.scm | 23 +-
> tests/database.scm | 103 ++++----
> tests/http.scm | 21 +-
> 7 files changed, 494 insertions(+), 456 deletions(-)
Pros:
- fix the fact that long SQL queries block the scheduler
- simplify the code, and make it more uniform
Cons:
- we don't take advantage of the SQLite multi-threading features
anymore
I've run some tests, and I didn't see any difference in terms of
performance.
Clément
- bug#32234: [PATCH 1/2] utils: Avoid deadlock when WITH-CRITICAL-SECTION calls are nested., Clément Lassieur, 2018/08/06
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Clément Lassieur, 2018/08/06
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread.,
Clément Lassieur <=
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Ludovic Courtès, 2018/08/19
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Danny Milosavljevic, 2018/08/27
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Clément Lassieur, 2018/08/27
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Danny Milosavljevic, 2018/08/27
- bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread., Clément Lassieur, 2018/08/27