Re: [Tracker] Performance improvement for tracker-0.6




There's another bug, I think something like this should be applied on
top of the commit. Else the ones where a function is to be used will end
up having wrong quoting.

On Thu, 2009-05-14 at 18:48 +0200, Carlos Garnacho wrote:
Here's an updated version, basically it moves table data handling to
libtracker-data (by introducing a TrackerDataUpdateMetadataContext
object), and adds support for initial insertions into the DB, instead of
doing 1 insertion and N updates.

On jue, 2009-05-14 at 16:54 +0200, Philip Van Hoof wrote:
On Thu, 2009-05-14 at 16:19 +0200, Philip Van Hoof wrote:

This is a performance improvement in how tracker-0.6 uses SQLite.

Instead of having many UPDATE statements per created resource this tries
to combine them together into one larger UPDATE statement.


+       if (!error) {
+               g_warning ("%s", error->message);
+               g_clear_error (&error);
+       }

This is of course wrong, should be "if (error)" instead.

-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be

Attachment: bugfix.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]