[tracker/wip/carlosg/update-perf: 38/43] core: Don't ask to cache a one-time statement




commit 89d14fa9694a9b945efcffbd91ae454548666c3e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Aug 20 16:30:05 2022 +0200

    core: Don't ask to cache a one-time statement
    
    We initialize nrl:modified once, there is no need to cache this statement
    for anything later.

 src/libtracker-sparql/core/tracker-data-update.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-sparql/core/tracker-data-update.c 
b/src/libtracker-sparql/core/tracker-data-update.c
index d6cedd85d..a384ff9f9 100644
--- a/src/libtracker-sparql/core/tracker-data-update.c
+++ b/src/libtracker-sparql/core/tracker-data-update.c
@@ -590,7 +590,7 @@ tracker_data_update_initialize_modseq (TrackerData  *data,
        ontologies = tracker_data_manager_get_ontologies (data->manager);
        property = tracker_ontologies_get_nrl_modified (ontologies);
 
-       stmt = tracker_db_interface_create_vstatement (temp_iface, TRACKER_DB_STATEMENT_CACHE_TYPE_SELECT, 
&inner_error,
+       stmt = tracker_db_interface_create_vstatement (temp_iface, TRACKER_DB_STATEMENT_CACHE_TYPE_NONE, 
&inner_error,
                                                       "SELECT MAX(object) FROM tracker_triples "
                                                       "WHERE predicate = %" G_GINT64_FORMAT,
                                                       tracker_property_get_id (property));


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