tracker r2053 - in branches/indexer-split: . src/tracker-indexer
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2053 - in branches/indexer-split: . src/tracker-indexer
- Date: Tue, 12 Aug 2008 12:49:11 +0000 (UTC)
Author: carlosg
Date: Tue Aug 12 12:49:11 2008
New Revision: 2053
URL: http://svn.gnome.org/viewvc/tracker?rev=2053&view=rev
Log:
2008-08-12 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/tracker-indexer.c: Change flushing parameters so
it's not done that often. Ensure the number of elements left to
process is reset to 0 after each flush.
(process_directory): Do not get into hidden files/dirs.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/tracker-indexer/tracker-indexer.c
Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer.c (original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer.c Tue Aug 12 12:49:11 2008
@@ -76,12 +76,12 @@
#define TRACKER_INDEXER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_INDEXER, TrackerIndexerPrivate))
/* Flush every 'x' seconds */
-#define FLUSH_FREQUENCY 5
+#define FLUSH_FREQUENCY 60
#define LOW_DISK_CHECK_FREQUENCY 10
/* Transaction every 'x' items */
-#define TRANSACTION_MAX 200
+#define TRANSACTION_MAX 2000
/* Throttle defaults */
#define THROTTLE_DEFAULT 0
@@ -277,6 +277,8 @@
tracker_db_index_flush (indexer->private->index);
signal_status (indexer, "flush");
+ indexer->private->items_processed = 0;
+
return FALSE;
}
@@ -1332,6 +1334,10 @@
PathInfo *new_info;
gchar *path;
+ if (name[0] == '.') {
+ continue;
+ }
+
path = g_build_filename (info->file->path, name, NULL);
new_info = path_info_new (info->module, info->file->module_name, path);
@@ -1448,7 +1454,6 @@
if (indexer->private->items_processed > TRANSACTION_MAX) {
schedule_flush (indexer, TRUE);
- indexer->private->items_processed = 0;
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]