From 78b45147c7cbb01968129d30b697b16930f7d0e9 Mon Sep 17 00:00:00 2001 From: Sandy Walsh Date: Tue, 11 Dec 2012 09:48:44 -0400 Subject: [PATCH] missing indices on kpi table --- stacktach/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stacktach/models.py b/stacktach/models.py index eabc548..9fde6b2 100644 --- a/stacktach/models.py +++ b/stacktach/models.py @@ -96,8 +96,8 @@ class RequestTracker(models.Model): final .end event (with the same Request ID).""" request_id = models.CharField(max_length=50, db_index=True) lifecycle = models.ForeignKey(Lifecycle) - last_timing = models.ForeignKey(Timing, null=True) - start = models.DecimalField(max_digits=20, decimal_places=6) + last_timing = models.ForeignKey(Timing, null=True, db_index=True) + start = models.DecimalField(max_digits=20, decimal_places=6, db_index=True) duration = models.DecimalField(max_digits=20, decimal_places=6, db_index=True)