[tracker] ontology: Set domain index on nie:contentCreated for nmo:Message



commit 79fa5643272cd99e3ab3c12acbc5ff548466d32f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 29 19:09:00 2015 +0100

    ontology: Set domain index on nie:contentCreated for nmo:Message
    
    This is needed in order to optimize queries for mixed sent/received
    nmo:Messages. This becomes a bottleneck when making polari use
    tracker-miner-chatlog [1] information to fetch backlog from channels.
    
    nie:contentCreated will be contained by every nmo:Message, so this
    index allows us to perform quick queries even with a massive amount
    of per-channel messages.
    
    [1] https://git.gnome.org/browse/tracker-miner-chatlog/

 src/ontologies/34-nmo.ontology |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ontologies/34-nmo.ontology b/src/ontologies/34-nmo.ontology
index c6d475c..7189ec8 100644
--- a/src/ontologies/34-nmo.ontology
+++ b/src/ontologies/34-nmo.ontology
@@ -12,7 +12,7 @@
 
 nmo: a tracker:Namespace, tracker:Ontology ;
        tracker:prefix "nmo" ;
-       nao:lastModified "2015-07-26T12:30:00Z" .
+       nao:lastModified "2015-12-29T14:30:00Z" .
 
 # FIXME Extension requested in Nepomuk
 nmo:MimePart a rdfs:Class ;
@@ -30,6 +30,7 @@ nmo:partBoundary a rdf:Property ;
 nmo:Message a rdfs:Class ;
        rdfs:comment "A message. Could be an email, instant messanging message, SMS message etc." ;
        rdfs:subClassOf nfo:TextDocument ;
+       tracker:domainIndex nie:contentCreated ;
        tracker:notify true .
 
 # FIXME Extension requested in Nepomuk


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