[tracker/sparql-update: 24/28] libtracker-data: Performance improvement on rdf:type lookups



commit 438673268b4d8853b5ab1560ddfbdb717ff932a8
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Mar 22 16:43:52 2011 +0100

    libtracker-data: Performance improvement on rdf:type lookups

 src/libtracker-data/tracker-data-update.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index f4e375d..efd188f 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2405,7 +2405,7 @@ tracker_data_insert_statement_with_uri (const gchar            *graph,
 		return;
 	}
 
-	if (strcmp (predicate, RDF_PREFIX "type") == 0) {
+	if (property == tracker_ontologies_get_rdf_type ()) {
 		/* handle rdf:type statements specially to
 		   cope with inference and insert blank rows */
 		class = tracker_ontologies_get_class_by_uri (object);
@@ -2614,7 +2614,7 @@ tracker_data_update_statement_with_uri (const gchar            *graph,
 		return;
 	}
 
-	if (strcmp (predicate, RDF_PREFIX "type") == 0) {
+	if (property == tracker_ontologies_get_rdf_type ()) {
 		/* handle rdf:type statements specially to
 		   cope with inference and insert blank rows */
 		class = tracker_ontologies_get_class_by_uri (object);



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