Commit 1e846a13 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: group elements on tracker_decorator_next() query

This query would deduplicate files by their matching rdf:types, which
may possibly return the same file multiple types if the file as
several types that satisfy the query. Group by the URN so we only get
each element exactly once.
parent ff36b912
......@@ -758,7 +758,7 @@ create_query_string (TrackerDecorator *decorator,
prev = cur;
g_string_append_printf (query, "))}}} LIMIT %d", QUERY_BATCH_SIZE);
g_string_append_printf (query, "))}} GROUP BY ?urn } LIMIT %d", QUERY_BATCH_SIZE);
return g_string_free (query, FALSE);
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