summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-12-20 14:33:18 +0100
committerCarlos Garnacho <carlosg@gnome.org>2020-12-31 13:07:29 +0100
commitc8bc4ee7195f4c430cf2c17e123a591d69ef0a70 (patch)
tree907a799dc0c168976ec0940f33e11aeeb9d3d15f
parente2f65f38aa0abe458935a02bed7d575c51e35c36 (diff)
downloadtracker-c8bc4ee7195f4c430cf2c17e123a591d69ef0a70.tar.gz
libtracker-data: Reduce internal database change buffer size
Once we are done coalescing multiple properties together for a same resource/graph, this stops being a benefit. Reduce this buffer size as those are usually clustered together. This is actually a tiny bit faster, too.
-rw-r--r--src/libtracker-data/tracker-data-update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 2ab0f9ef3..633d5130a 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1102,7 +1102,7 @@ tracker_data_update_buffer_might_flush (TrackerData *data,
graph = g_ptr_array_index (data->update_buffer.graphs, i);
count += g_hash_table_size (graph->resources);
- if (count >= 1000) {
+ if (count >= 50) {
tracker_data_update_buffer_flush (data, error);
break;
}