[tracker/rss-enclosures] tracker-store: Process 50 turtle statements at once



commit aa3e92ad0da5becb2ceff5ff68b16d23d12552b6
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]