Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
tracker
Commits
4890d1c2
Commit
4890d1c2
authored
Apr 30, 2010
by
Philip Van Hoof
Browse files
NFO, libtracker-miner: Major performance improvement for crawler
parent
6985f112
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/ontologies/33-nfo.ontology
View file @
4890d1c2
...
...
@@ -12,7 +12,7 @@
nfo: a tracker:Namespace, tracker:Ontology ;
tracker:prefix "nfo" ;
nao:lastModified "2010-04-
22
T1
3
:12:00Z" .
nao:lastModified "2010-04-
30
T1
6
: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 ;
...
...
src/libtracker-miner/tracker-miner-fs.c
View file @
4890d1c2
...
...
@@ -2182,11 +2182,11 @@ ensure_mtime_cache (TrackerMinerFS *fs,
g_debug
(
"Generating mtime cache for folder: %s"
,
uri
);
query
=
g_strdup_printf
(
"SELECT ?ur
i nfo:fileLastModified (?u) {
"
" ?u
nie:url ?ur
i .
"
"
FILTER (tracker:uri-is-parent (
\"
%s
\"
, ?uri))
"
"}"
,
uri
);
query
=
g_strdup_printf
(
"SELECT ?ur
l ?last { ?u nfo:belongsToContainer ?p ;
"
"
nie:url ?ur
l ;
"
"nfo:fileLastModified ?last .
"
"?p nie:url '%s' }"
,
uri
);
g_free
(
uri
);
data
.
main_loop
=
g_main_loop_new
(
NULL
,
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment