2009-01-13 Srinivasa Ragavan <sragavan@novell.com>
* camel/camel-db.c: Speed up total-count info, by counting indexed
read.
svn path=/trunk/; revision=9930
+2009-01-13 Srinivasa Ragavan <sragavan@novell.com>
+
+ * camel/camel-db.c: Speed up total-count info, by counting indexed
+ read.
+
2009-01-12 Philip Van Hoof <philip@codeminded.be>
* camel-db.c: Allowing the developer to add migration code for in
if (!cdb)
return -1;
- query = sqlite3_mprintf ("SELECT COUNT (*) FROM %Q", table_name);
+ query = sqlite3_mprintf ("SELECT COUNT (*) FROM %Q where read=0 or read=1", table_name);
ret = camel_db_count_message_info (cdb, query, count, ex);
sqlite3_free (query);