lubuntu-desktop team mailing list archive
-
lubuntu-desktop team
-
Mailing list archive
-
Message #04760
Re: Use a database in lsc
It's a good idea. Please don't use gdbm. It's performance is not good.
For a simple and lightweight hash db, you can consider tdb, which is used by
samba.
If you want more advanced query, then sqlite is the best choice IMO.
A nice idea is using locale specific cache since most parts of of a desktop
entry file are just translations.
In addition, the cache should be system-wide rather than user-specific since
all users share the same repo.
So a hook triggered after installation of app-install package is the best to
regenerate the cache.
On Mon, Sep 5, 2011 at 7:20 PM, Stefano <eco.stefi@xxxxxxxxxxxxx> wrote:
> i was thinking about the use of a database, re-builded every time the
> cache update or upgrade, this because parse the contents of a
> directory(/usr/share/app-install/desktop) is very slow, so we can build
> the database parsing the directory only the first time, then parse the
> database to get the packages faster. we can also add an option in the
> edit menu, to re-build the database, called "Force packages list
> upgrade" or something similar.
>
> let me know what you think.
>
> Stephen Smally
>
> _______________________________________________
> Mailing list: https://launchpad.net/~lubuntu-desktop
> Post to : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~lubuntu-desktop
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References