liferea가 느릴 때 청소하기

atie의 이미지
18299
points
5
points

liferea 1.4.20 변경 사항 찾으러 갔다가 유용할 것 같은 팁을 하나 보았습니다.

http://liferea.blogspot.com/2008/08/how-to-run-vacuum.html

제 데스크탑에서 쓰는 프로그램 중에서 liferea가 가장 기동 시간이 느린 프로그램이 되어서 어찌 캐쉬 문제일까 의아해만 하고 있었지 수동으로 db를 정리하는 방법은 생각하지 못하고 있었네요. 제 경우에는 80M db가 42M로 절반 가량 확 정리가 되었습니다. 프로그램 기동 속도는 빨라진 듯 한데 더 지켜봐야 하겠고요. 방법을 정리하면, liferea 실행을 끝내고 명령행에서 다음처럼 합니다.

$ sqlite3 ~/.liferea_1.4/liferea.db 
sqlite> VACUUM;
sqlite> .quit

자동으로 청소를 안하는 것에 대한 설명은 이 글에 언급을 하였습니다.
http://liferea.blogspot.com/2008/08/why-auto-vacuum-is-no-good.html

atie의 이미지
18299
points

저는 txt 파일로

1
point

저는 txt 파일로 저장이 되는 것을 선호해서 메모용 프로그램으로 데스크탑 위키인 zim을 씁니다.

liferea의 피드 목록을 zim을 위한 텍스트 파일로 가져오는 간단한 boo 스크립트 입니다.

$ cp ~/.liferea_1.4/liferea.db .
$ cat liferea.boo
        import System
        import System.Data from System.Data
        import Mono.Data.SqliteClient

        dbcon as SqliteConnection = SqliteConnection()
        connectionString as string = 'URI=file:liferea.db,version=3'
        dbcon.ConnectionString = connectionString
        dbcon.Open()
        dbcmd as SqliteCommand = SqliteCommand()
        dbcmd.Connection = dbcon
        dbcmd.CommandText = "select source from subscription"

        print "====== Liferea ======"
        today = date.Now
        print "Created ${today}"

        reader as SqliteDataReader = dbcmd.ExecuteReader()
        while reader.Read():
                print reader[0].ToString()
        dbcon.Close()
$ booi liferea.boo > liferea.txt

----
I paint objects as I think them, not as I see them.
atie's minipage

송효진의 이미지
14949
points

sqlite3 를 사용하는

1
point

sqlite3 를 사용하는 유틸은 유틸 자체에 VACUUM 기능을 넣으면 더 좋을것 같은데...
어쨌든 sqlite3 는 대몬이 뜨지 않기 때문에 수동 VACUUM 을 필요로 합니다.

emerge money
http://wiki.kldp.org/wiki.php/GentooInstallSimple - 명령어도 몇개 안되요~
http://xenosi.de/

eminency의 이미지
3651
points

auto vacuum이 가능하지

1
point

auto vacuum이 가능하지 않나요?

송효진의 이미지
14949
points

3.1에

1
point

3.1에 생겼네요.ㅎㅎ
http://sqlite.org/lang_vacuum.html

emerge money
http://wiki.kldp.org/wiki.php/GentooInstallSimple - 명령어도 몇개 안되요~
http://xenosi.de/

댓글 보기 옵션

원하시는 댓글 전시 방법을 선택한 다음 "설정 저장"을 누르셔서 적용하십시오.