From e063e32b47c134f4a5e38f03743c3300e0e769e9 Mon Sep 17 00:00:00 2001 From: Adam Kennedy Date: Wed, 22 Apr 2009 09:30:53 +0000 Subject: [PATCH] All annotations merged --- lib/DBD/SQLite.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index ade35a1..1d86102 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -788,6 +788,13 @@ Which will prevent sqlite from doing fsync's when writing (which slows down non-transactional writes significantly) at the expense of some peace of mind. Also try playing with the cache_size pragma. +The memory usage of SQLite can also be tuned using the cache_size pragma. + + $dbh->do("PRAGMA cache_size = 800000"); + +The above will allocate 800M for DB cache; the default is 2M. Your sweet spot +probably lies somewhere in between. + =head1 SUPPORT Bugs should be reported via the CPAN bug tracker at