Menu

#7 DB never cleaned up

open-accepted
None
4
2010-12-01
2010-11-30
Anonymous
No

Anamnesis ignores--cleanup command. It says it's doing something, but the databsae remains unchanged. Restarting doesn't seem to help either.
Ubuntu 10.10.

Discussion

  • Fabio Wanderley Guerra

    Hi veggen, thanks for reporting the bug.

    Which version of anamnesis are you using?

    Note that what the cleanup command does is the VACUUM command and do not remove the database data.
    The documentation is not very clear. I'll try to improve in the next release.

    More information on the VACUUM command in the page:

    http://www.sqlite.org/lang_vacuum.html

    If you want to clear all clipboard history, you could simply delete the database file, probably located in "~/.local/share/anamnesis/database".

     
  • Fabio Wanderley Guerra

    • priority: 5 --> 4
    • assigned_to: nobody --> fabiowguerra
    • status: open --> open-accepted
     
  • Anonymous

    Anonymous - 2010-12-02

    Thanks for the info. I was under the impression it was supposed to actually delete data.
    On a somewhat related note, max number of entires kept is ignored. Is this expected?
    I'm using the latest stable version.

     
  • Fabio Wanderley Guerra

    Hi veggan,

    It is a related question. Because the max number of entries is ignored until you run the cleanup.

    When the cleanup is run, the elements that exceeds the maximum count are deleted. If this behavior is not happening it is a bug. Any suggestions are welcome :-)

    It was implemented this way to make the daemon more lightweight.

    The cleanup is run for default on every start up of the anamnesis daemon. It should be improved in the future, because this could make the boot time a little bit longer if you have a huge database.

    The document should be more clear about all these information. I will close this bug only after improving the documentation.

     

Log in to post a comment.

MongoDB Logo MongoDB