[tracker] TrackerMinerFS: Improve performance on move operations.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: Improve performance on move operations.
- Date: Wed, 17 Mar 2010 12:07:40 +0000 (UTC)
commit bfe6c730847653b0d746d3281c6a708144d2cd7a
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Mar 17 12:59:45 2010 +0100
TrackerMinerFS: Improve performance on move operations.
The query to obtain all directory children in item_update_children_uri()
now takes ~1s when moving Linux sources, as opposed to >9min with OPTIONAL.
src/libtracker-miner/tracker-miner-fs.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 9c1f43c..6fedc12 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1456,11 +1456,8 @@ item_update_children_uri (TrackerMinerFS *fs,
slash_uri = g_strconcat (source_uri, "/", NULL);
- sparql = g_strdup_printf ("SELECT ?child ?url ?m WHERE { "
+ sparql = g_strdup_printf ("SELECT ?child ?url nie:mimeType(?child) WHERE { "
" ?child nie:url ?url . "
- " OPTIONAL { "
- " ?child nie:mimeType ?m "
- " } . "
" FILTER (fn:starts-with (?url, \"%s\")) "
"}",
slash_uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]