[tracker/wip/carlosg/refcount-in-code: 4/6] libtracker-data: Reduce internal database change buffer size
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/refcount-in-code: 4/6] libtracker-data: Reduce internal database change buffer size
- Date: Thu, 31 Dec 2020 12:27:03 +0000 (UTC)
commit c8bc4ee7195f4c430cf2c17e123a591d69ef0a70
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 20 14:33:18 2020 +0100
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.
src/libtracker-data/tracker-data-update.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]