Sluggish liferea with lots of feeds and cached entries?

Increasing the sqlite cache size seems to have improved it for me:
$ sqlite3 /home/stewart/.liferea_1.4/liferea.db
SQLite version 3.6.10
Enter “.help” for instructions
Enter SQL statements terminated with a “;”
sqlite> pragma default_cache_size=20000;

13 thoughts on “Sluggish liferea with lots of feeds and cached entries?

  1. Pingback: Francois Marier (fmarier) 's status on Friday, 18-Sep-09 04:17:42 UTC - Identi.ca

  2. Let us know how you get on. Imports 1.4 feeds into Liferea seamlessly… :)

    Saying that — you can still use the ‘default cache size’ trick. :D

  3. I was getting very heavy disk grinding from Liferea, and I’ve been experimenting with various settings for sqlite, based on Stewart’s tip here. I didn’t personally find much difference with increasing the cache size, but it made a HUGE difference to set the synchronous mode to NORMAL instead of the default FULL.

    As above:

    $ sqlite3 ~/.liferea_1.6/liferea.db
    SQLite version 3.6.10
    Enter “.help” for instructions
    Enter SQL statements terminated with a “;”
    sqlite> pragma synchronous=1;
    sqlite> ^D
    $

    There’s a very slight increase in the possibility of database corruption if a power failure were to happen in the middle of an update, however it seems well worth the risk to me, and hopefully saves my hard drive!

  4. the synchronous pragma is only per session and won’t be saved in the db:

    stewart@willster:~/$ sqlite3 ~/.liferea_1.6.db erea.
    SQLite version 3.6.16
    Enter “.help” for instructions
    Enter SQL statements terminated with a “;”
    sqlite> pragma synchronous;
    2
    sqlite> pragma synchronous=1;
    sqlite>^d
    stewart@willster:~/drizzle/embedded-innodb/tests$

    stewart@willster:~/$ sqlite3 ~/.liferea_1.6/liferea.db
    SQLite version 3.6.16
    Enter “.help” for instructions
    Enter SQL statements terminated with a “;”
    sqlite> pragma synchronous;
    2
    sqlite>

  5. Good point. There is a default_synchronous setting that makes it permanent. I set mine to default_synchronous=0 (off) and it has radically improved the update and viewing speeds.

  6. Update: apparently the default_synchronous setting was removed in SQLite3. I’m now considering either starting Liferea with a script that sets the pragma each time, or setting it in Liferea code and recompiling….

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.