]> git.notmuchmail.org Git - notmuch/commitdiff
vim: refactor database handling
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 30 Sep 2013 21:06:48 +0000 (16:06 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 20 Nov 2013 13:23:29 +0000 (07:23 -0600)
To minimize memory usage we need to destroy the queries and the
databases, so we should keep track of them.

Each buffer gets a database connection that is destroyed when the buffer
is destroyed, and all the queries along with it.

Ideally notmuch should destroy the queries when the database is
destroyed, but it's not doing that at the moment.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

No differences found