Index: term_node_count.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/term_node_count/term_node_count.install,v
retrieving revision 1.2
diff -u -p -r1.2 term_node_count.install
--- term_node_count.install	5 Mar 2009 22:43:11 -0000	1.2
+++ term_node_count.install	29 Apr 2010 20:58:30 -0000
@@ -47,7 +47,19 @@ function term_node_count_schema() {
 				'default' => 0
 			)
 		),
-		'primary key' => array('tid')
+    'primary key' => array('tid'),
+    'indexes' => array(
+      'node_count' => array('node_count'),
+    ),
 	);
 	return $schema;
-}
\ No newline at end of file
+}
+
+/**
+ * Add an index on the node_count field.
+ */
+function term_node_count_update_6101() {
+  $ret = array();
+  db_add_index($ret, 'term_node_count', 'nodecount', array('node_count'));
+  return $ret;
+}
