[tracker/wip/carlosg/update-perf: 60/65] core: Don't ask to cache a one-time statement
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/update-perf: 60/65] core: Don't ask to cache a one-time statement
- Date: Tue, 23 Aug 2022 09:32:55 +0000 (UTC)
commit ba188ee0a2423fcb2577868131412cc3c28b9320
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 b1ec9df0e..1186d5f87 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]