[tracker/sparql-update: 24/25] libtracker-data: Performance improvement on rdf:type lookups
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sparql-update: 24/25] libtracker-data: Performance improvement on rdf:type lookups
- Date: Tue, 22 Mar 2011 15:47:48 +0000 (UTC)
commit 832de90bdec34895ba090e567eb1fd44201210ac
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]