[tracker] tracker-store: Process 50 turtle statements at once
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: Process 50 turtle statements at once
- Date: Thu, 3 Jun 2010 09:02:12 +0000 (UTC)
commit 36a1f7c00c648a9bf35203554b6df48cd879f19c
Author: Jürg Billeter <j bitron ch>
Date: Wed Jun 2 11:23:52 2010 +0300
tracker-store: Process 50 turtle statements at once
This improves import performance.
src/tracker-store/tracker-store.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index a2f53ab..8b1c24c 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -38,6 +38,8 @@
#define TRACKER_STORE_TRANSACTION_MAX 4000
#define TRACKER_STORE_MAX_CONCURRENT_QUERIES 2
+#define TRACKER_STORE_N_TURTLE_STATEMENTS 50
+
#define TRACKER_STORE_QUERY_WATCHDOG_TIMEOUT 10
#define TRACKER_STORE_MAX_TASK_TIME 30
@@ -176,7 +178,7 @@ process_turtle_file_part (TrackerTurtleReader *reader, GError **error)
}
i++;
- if (!new_error && i >= 10) {
+ if (!new_error && i >= TRACKER_STORE_N_TURTLE_STATEMENTS) {
tracker_data_commit_transaction (&new_error);
if (new_error) {
tracker_data_rollback_transaction ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]