tracker r2885 - in trunk: . data/services src/libtracker-data



Author: mottela
Date: Fri Feb  6 04:15:07 2009
New Revision: 2885
URL: http://svn.gnome.org/viewvc/tracker?rev=2885&view=rev

Log:
Some query speed improvements

Modified:
   trunk/ChangeLog
   trunk/data/services/default.service
   trunk/src/libtracker-data/tracker-data-search.c

Modified: trunk/data/services/default.service
==============================================================================
--- trunk/data/services/default.service	(original)
+++ trunk/data/services/default.service	Fri Feb  6 04:15:07 2009
@@ -70,16 +70,16 @@
 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 @@
 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

Modified: trunk/src/libtracker-data/tracker-data-search.c
==============================================================================
--- trunk/src/libtracker-data/tracker-data-search.c	(original)
+++ trunk/src/libtracker-data/tracker-data-search.c	Fri Feb  6 04:15:07 2009
@@ -767,7 +767,7 @@
 	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 @@
 	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 @@
 		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 @@
 	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 @@
 		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 @@
 		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 @@
 	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 @@
 	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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]