[polari/wip/carlosg/tracker: 2/16] data: Add index on polari:time



commit 688ef6af80821b4333f138917901525511529f8a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Feb 24 22:32:47 2019 +0100

    data: Add index on polari:time
    
    Queries will typically order on it, so it makes sense to make it
    an indexed field.

 data/resources/polari.ontology | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/resources/polari.ontology b/data/resources/polari.ontology
index 810cc51..a5f142f 100644
--- a/data/resources/polari.ontology
+++ b/data/resources/polari.ontology
@@ -76,7 +76,8 @@ polari:sender a rdf:Property ;
 polari:time a rdf:Property ;
             nrl:maxCardinality 1 ;
             rdfs:domain polari:Message ;
-            rdfs:range xsd:dateTime .
+            rdfs:range xsd:dateTime ;
+            tracker:indexed true .
 
 polari:text a rdf:Property ;
             nrl:maxCardinality 1 ;


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