On 12/19/2014 11:22 AM, Kushagradhi Bhowmik wrote:
I am writing continuously into a db file which has PRAGMA journal_mode=WAL,
PRAGMA journal_size_limit=0. My C++ program has two threads, one
reader(queries at 15 sec intervals) and one writer(inserts at 5 sec
intervals).
Every 3 min I am
Readers do not need long-lasting transactions (if any at all), so I'd
rather suspect your writer to be the culprit. Does it use lasting
transactions? If so, make it commit the transaction before checkpointing.
regards
gerd
___
sqlite-users mailing
I am writing continuously into a db file which has PRAGMA journal_mode=WAL,
PRAGMA journal_size_limit=0. My C++ program has two threads, one
reader(queries at 15 sec intervals) and one writer(inserts at 5 sec
intervals).
Every 3 min I am pausing insertion to run a sqlite3_wal_checkpoint_v2()
from
3 matches
Mail list logo