[tracker] libtracker-data: Do not load superproperties on read-only access
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Do not load superproperties on read-only access
- Date: Tue, 12 Oct 2010 15:09:21 +0000 (UTC)
commit af2b2b53ca9de72143673d5b2757bd7b41a1e256
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 | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index a3115d5..9915e07 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1871,7 +1871,11 @@ 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);
+
+ /* super properties are only used in updates, never for queries */
+ 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]