[tracker/wip/carlosg/update-perf: 67/72] 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: 67/72] core: Don't ask to cache a one-time statement
- Date: Tue, 30 Aug 2022 15:39:42 +0000 (UTC)
commit 84edbdc89db215fcba0c635fe2c650ad50b2af4b
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]