Commit a1e9506f authored by Philip Van Hoof's avatar Philip Van Hoof Committed by Philip Van Hoof

Removed some more Xesam traces that were burried deeper

2009-03-11  Philip Van Hoof  <philip@codeminded.be>

        * src/tracker-indexer/tracker-indexer.c:
        * src/libtracker-data/tracker-data-update.c:
        * src/libtracker-data/tracker-data-update.h:
        * data/db/sqlite-cache.sql:
        * data/db/sqlite-stored-procs.sql:
        * tests/scripts/data/xesam.sql: Removed some more Xesam traces that
        were burried deeper


svn path=/trunk/; revision=3050
parent 3e55e2a5
2009-03-11 Philip Van Hoof <philip@codeminded.be>
* src/tracker-indexer/tracker-indexer.c:
* src/libtracker-data/tracker-data-update.c:
* src/libtracker-data/tracker-data-update.h:
* data/db/sqlite-cache.sql:
* data/db/sqlite-stored-procs.sql:
* tests/scripts/data/xesam.sql: Removed some more Xesam traces that
were burried deeper
2009-03-11 Philip Van Hoof <philip@codeminded.be>
* src/libtracker-data/tracker-data-schema.c:
......
......@@ -68,19 +68,3 @@ CREATE TABLE FileWatches
unique (URI)
);
CREATE TABLE Events
(
ID Integer primary key autoincrement,
ServiceID Integer not null,
BeingHandled Integer default 0,
EventType Text
);
CREATE TABLE LiveSearches
(
ServiceID Integer not null,
SearchID Text,
Unique (ServiceID, SearchID)
);
......@@ -15,18 +15,7 @@ GetFileMTime SELECT M.MetaDataValue FROM Services AS S INNER J
GetServices SELECT TypeName, Description, Parent FROM ServiceTypes ORDER BY TypeID;
GetFileChildren SELECT ID, Path, Name, IsDirectory FROM Services WHERE Path = ?;
/*
* Live search queries
*/
CreateEvent INSERT INTO Events (ServiceID, EventType) VALUES (?,?);
GetLiveSearchAllIDs SELECT X.ServiceID FROM cache.LiveSearches AS X WHERE X.SearchID = ?
GetLiveSearchDeletedIDs SELECT E.ServiceID FROM Events AS E, cache.LiveSearches AS X WHERE E.ServiceID = X.ServiceID AND X.SearchID = ? AND E.EventType = 'Delete';
GetLiveSearchHitCount SELECT count(*) FROM cache.LiveSearches WHERE SearchID = ?;
DeleteLiveSearchDeletedIDs DELETE FROM cache.LiveSearches AS Y WHERE Y.ServiceID IN SELECT ServiceID FROM Events AS E, cache.LiveSearches AS X WHERE E.ServiceID = X.ServiceID AND X.SearchID = ? AND E.EventType = 'Delete'
LiveSearchStopSearch DELETE FROM cache.LiveSearches WHERE SearchID = ?
/*
* Option queries
......
......@@ -89,23 +89,6 @@ tracker_data_update_get_new_service_id (TrackerDBInterface *iface)
return ++max;
}
void
tracker_data_update_create_event (TrackerDBInterface *iface,
guint32 service_id,
const gchar *type)
{
gchar *service_id_str;
service_id_str = tracker_guint32_to_string (service_id);
tracker_db_interface_execute_procedure (iface, NULL, "CreateEvent",
service_id_str,
type,
NULL);
g_free (service_id_str);
}
gboolean
tracker_data_update_create_service (TrackerService *service,
guint32 service_id,
......@@ -542,14 +525,6 @@ tracker_data_update_delete_content (TrackerService *service,
g_free (service_id_str);
}
void
tracker_data_update_delete_handled_events (TrackerDBInterface *iface)
{
g_return_if_fail (TRACKER_IS_DB_INTERFACE (iface));
tracker_data_manager_exec (iface, "DELETE FROM Events WHERE BeingHandled = 1");
}
void
tracker_data_update_delete_service_by_path (const gchar *path,
const gchar *rdf_type)
......
......@@ -79,12 +79,6 @@ void tracker_data_update_set_content (TrackerService *se
void tracker_data_update_delete_content (TrackerService *service,
guint32 service_id);
/* Events */
void tracker_data_update_create_event (TrackerDBInterface *iface,
guint32 service_id,
const gchar *type);
void tracker_data_update_delete_handled_events (TrackerDBInterface *iface);
/* Volume handling */
void tracker_data_update_enable_volume (const gchar *udi,
......
......@@ -1546,8 +1546,6 @@ item_add_or_update (TrackerIndexer *indexer,
basename,
data);
tracker_data_update_create_event (indexer->private->cache, id, "Create");
index_metadata (indexer, id, service, metadata);
text = tracker_module_file_get_text (info->module_file);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment