gwibber stores data in XDG_CONFIG_HOME directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
New
|
Medium
|
Unassigned | ||
gwibber (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gwibber
Gwibber appears to use an SQLite3 database to store the following details, each in its own database table:
(1) account details
(2) streams
(3) searches
(4) messages
The problem is that it places this database in ~/.config/
accounts: 1 row.
searches: 4 rows.
streams: 24 rows.
messages: 61651 rows (!)
As a result, my gwibble.sqlite is 121MB and 99.952% of these rows equate to "data", not "configuration".
I would propose that gwibber either stores (1)-(3) in a simple .ini file, or as a simpler change, create two SQLite databases: one (tiny one!) for configuration in $XDG_CONFIG_HOME and the other for data in $XDG_DATA_HOME.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gwibber 2.91.91-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-5-generic i686
Architecture: i386
Date: Mon Mar 14 15:43:29 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110119)
ProcEnviron:
LANGUAGE=en_GB:en
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: gwibber
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in gwibber: | |
importance: | Undecided → Medium |
Changed in gwibber (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: sqlite |
I plan to move it to XDG_DATA_HOME as well as improve storage. Right now we store a bunch of json data uncompressed inside the database. I have a branch I am working on that compresses that, which saves a significant amount of space.