Merge pull request #382 from metamx/tasks-table-index

DbConnector: Indexes on tasks table
This commit is contained in:
fjy 2014-02-05 17:01:48 -07:00
commit 636eb23f71
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ public class DbConnector
+ " `payload` longblob NOT NULL,\n"
+ " `status_payload` longblob NOT NULL,\n"
+ " `active` tinyint(1) NOT NULL DEFAULT '0',\n"
+ " PRIMARY KEY (`id`)\n"
+ " PRIMARY KEY (`id`),\n"
+ " KEY (active, created_date(100))\n"
+ ")",
taskTableName
)