Commit 8ef368dc authored by Mikael Ottela's avatar Mikael Ottela

Some query speed improvements

svn path=/trunk/; revision=2885
parent c9703295
2009-02-05 Mikael Ottela <mikael.ottela@ixonos.com>
* src/libtracker-data/tracker-data-search.c
* data/services/default.service: Some query speed improvements
2009-02-05 Martyn Russell <martyn@imendio.com>
* src/tracker-applet/tracker-applet.c: (set_status_hint),
......
......@@ -70,16 +70,16 @@ UIVisible=true
UIView=icon
Icon=image-x-generic
KeyMetadata1=Image:Title
KeyMetadata2=Image:Height
KeyMetadata3=Image:Width
KeyMetadata4=Image:Date
KeyMetadata5=Image:Software
KeyMetadata6=Image:Creator
KeyMetadata7=Image:Rating
KeyMetadata8=Image:Country
KeyMetadata9=Image:City
KeyMetadata10=Image:Location
KeyMetadata11=Image:Orientation
KeyMetadata2=Image:Date
KeyMetadata3=Image:Country
KeyMetadata4=Image:City
KeyMetadata5=Image:Rating
KeyMetadata6=Image:Location
KeyMetadata7=Image:Orientation
KeyMetadata8=Image:Height
KeyMetadata9=Image:Width
KeyMetadata10=Image:Software
KeyMetadata11=Image:Creator
TabularMetadata=File:Name;Image:Height;Image:Width;Image:Date;File:Modified;Image:Creator;Image:Software;
TileMetadata=Image:Title;Image:Height;Image:Width;Image:Date;Image:Creator;Image:Software;Image:Comments;
Mimes=application/vnd.oasis.opendocument.image;application/x-krita;
......@@ -103,9 +103,9 @@ KeyMetadata1=Audio:Title
KeyMetadata2=Audio:Artist
KeyMetadata3=Audio:Album
KeyMetadata4=Audio:Genre
KeyMetadata5=Audio:Duration
KeyMetadata5=Audio:TrackNo
KeyMetadata6=Audio:ReleaseDate
KeyMetadata7=Audio:TrackNo
KeyMetadata7=Audio:Duration
KeyMetadata8=Audio:Bitrate
KeyMetadata9=Audio:PlayCount
KeyMetadata10=Audio:DateAdded
......
......@@ -767,7 +767,7 @@ tracker_data_search_get_unique_values (const gchar *service_type,
for (i = 0; i < g_strv_length (fields); i++) {
TrackerFieldData *fd;
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -891,7 +891,7 @@ tracker_data_search_get_unique_values_with_count (const gchar *service_type,
for (i = 0; i < g_strv_length (fields); i++) {
TrackerFieldData *fd;
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -924,7 +924,7 @@ tracker_data_search_get_unique_values_with_count (const gchar *service_type,
TrackerFieldData *fd;
if (strcmp (count_field, "*")) {
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, count_field, FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, count_field, TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -1051,7 +1051,7 @@ tracker_data_search_get_unique_values_with_count_and_sum (const gchar *ser
for (i = 0; i < g_strv_length (fields); i++) {
TrackerFieldData *fd;
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, fields[i], TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -1084,7 +1084,7 @@ tracker_data_search_get_unique_values_with_count_and_sum (const gchar *ser
TrackerFieldData *fd;
if (strcmp (count_field, "*")) {
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, count_field, FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, count_field, TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -1109,7 +1109,7 @@ tracker_data_search_get_unique_values_with_count_and_sum (const gchar *ser
TrackerFieldData *fd;
TrackerFieldType data_type;
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, sum_field, FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &field_list, sum_field, TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -1234,7 +1234,7 @@ tracker_data_search_get_sum (const gchar *service_type,
sql_from = g_string_new ("\nFROM Services AS S ");
sql_where = g_string_new ("\nWHERE ");
fd = tracker_metadata_add_metadata_field (iface, service_type, &fields, field, FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &fields, field, TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......@@ -1344,7 +1344,7 @@ tracker_data_search_get_count (const gchar *service_type,
sql_where = g_string_new ("\nWHERE ");
if (strcmp (field, "*")) {
fd = tracker_metadata_add_metadata_field (iface, service_type, &fields, field, FALSE, TRUE);
fd = tracker_metadata_add_metadata_field (iface, service_type, &fields, field, TRUE, FALSE);
if (!fd) {
g_string_free (sql_select, TRUE);
......
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