Commit 4890d1c2 authored by Philip Van Hoof's avatar Philip Van Hoof
Browse files

NFO, libtracker-miner: Major performance improvement for crawler

parent 6985f112
......@@ -12,7 +12,7 @@
nfo: a tracker:Namespace, tracker:Ontology ;
tracker:prefix "nfo" ;
nao:lastModified "2010-04-22T13:12:00Z" .
nao:lastModified "2010-04-30T16:12:00Z" .
nfo:Document a rdfs:Class ;
rdfs:label "Document" ;
......@@ -330,6 +330,7 @@ nfo:belongsToContainer a rdf:Property ;
rdfs:subPropertyOf nie:isPartOf ;
nrl:maxCardinality 1 ;
rdfs:domain nie:DataObject ;
tracker:indexed true ;
rdfs:range nfo:DataContainer .
nfo:aspectRatio a rdf:Property ;
......
......@@ -2182,11 +2182,11 @@ ensure_mtime_cache (TrackerMinerFS *fs,
g_debug ("Generating mtime cache for folder: %s", uri);
query = g_strdup_printf ("SELECT ?uri nfo:fileLastModified (?u) { "
" ?u nie:url ?uri . "
" FILTER (tracker:uri-is-parent (\"%s\", ?uri)) "
"}",
uri);
query = g_strdup_printf ("SELECT ?url ?last { ?u nfo:belongsToContainer ?p ; "
"nie:url ?url ; "
"nfo:fileLastModified ?last . "
"?p nie:url '%s' }", uri);
g_free (uri);
data.main_loop = g_main_loop_new (NULL, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment