[tracker/init: 2/3] libtracker-data: Do not load superproperties on read-only access



commit 7387d026957e82532dc99472a3318d8de99f8d09
Author: Jürg Billeter <j bitron ch>
Date:   Tue Oct 12 15:33:28 2010 +0200

    libtracker-data: Do not load superproperties on read-only access
    
    This reduces initialization time for direct access.

 src/libtracker-data/tracker-data-manager.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index a3115d5..ce2864c 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1871,7 +1871,10 @@ db_get_static_data (TrackerDBInterface *iface)
 			tracker_property_set_fulltext_no_limit (property, fulltext_no_limit);
 			tracker_property_set_embedded (property, !annotation);
 			tracker_property_set_is_inverse_functional_property (property, is_inverse_functional_property);
-			property_add_super_properties_from_db (iface, property);
+
+			if ((tracker_db_manager_get_flags (NULL, NULL) & TRACKER_DB_MANAGER_READONLY) == 0) {
+				property_add_super_properties_from_db (iface, property);
+			}
 
 			tracker_ontologies_add_property (property);
 			tracker_ontologies_add_id_uri_pair (id, uri);



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