[tracker] Throttle 100 Emails per 5 seconds delay
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Throttle 100 Emails per 5 seconds delay
- Date: Mon, 11 Jan 2010 13:21:08 +0000 (UTC)
commit 1614fb5beb5077b3d1ffeb8ec70dacc72ee50edc
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Jan 11 14:19:31 2010 +0100
Throttle 100 Emails per 5 seconds delay
This can be improved by implementing real throttling instead
src/plugins/evolution/tracker-evolution-plugin.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index df7e893..18e2d36 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -325,7 +325,7 @@ send_sparql_update (TrackerEvolutionPlugin *self, const gchar *sparql)
if (priv->client) {
dbus_g_proxy_call_no_reply (priv->client->proxy_resources,
- "SparqlUpdate",
+ "BatchSparqlUpdate",
G_TYPE_STRING, sparql,
G_TYPE_INVALID);
}
@@ -854,10 +854,15 @@ many_idle_destroy (gpointer user_data)
static void
start_many_handler (TrackerEvolutionPlugin *self)
{
- g_idle_add_full (G_PRIORITY_LOW,
+ g_timeout_add_seconds_full (G_PRIORITY_LOW, 5,
+ many_idle_handler,
+ g_object_ref (self),
+ many_idle_destroy);
+
+/* g_idle_add_full (G_PRIORITY_LOW,
many_idle_handler,
g_object_ref (self),
- many_idle_destroy);
+ many_idle_destroy); */
}
/* Initial upload of more recent than last_checkout items, called in the mainloop */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]