From 1df8b4a7a664a2f568e1273f78feb66bf906d728 Mon Sep 17 00:00:00 2001 From: Sandy Walsh Date: Tue, 11 Dec 2012 09:14:38 -0400 Subject: [PATCH] added more missing indicies --- stacktach/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stacktach/models.py b/stacktach/models.py index 4852038..eabc548 100644 --- a/stacktach/models.py +++ b/stacktach/models.py @@ -86,7 +86,8 @@ class Timing(models.Model): decimal_places=6) end_when = models.DecimalField(null=True, max_digits=20, decimal_places=6) - diff = models.DecimalField(null=True, max_digits=20, decimal_places=6) + diff = models.DecimalField(null=True, max_digits=20, decimal_places=6, + db_index=True) class RequestTracker(models.Model): @@ -97,7 +98,8 @@ class RequestTracker(models.Model): lifecycle = models.ForeignKey(Lifecycle) last_timing = models.ForeignKey(Timing, null=True) start = models.DecimalField(max_digits=20, decimal_places=6) - duration = models.DecimalField(max_digits=20, decimal_places=6) + duration = models.DecimalField(max_digits=20, decimal_places=6, + db_index=True) # Not used ... but soon hopefully. - completed = models.BooleanField(default=False) + completed = models.BooleanField(default=False, db_index=True)