Download:
child 302:0209ed19c6b5
parent 300:c9294e82e4f6
301:508c24e708e0
Anton Shestakov <av6@dwimlabs.net>, Sat, 23 Sep 2017 12:43:15 +0800
models: it's now obvious that the order of columns should be this Now the index helps with "where project_id = ?" and "order by ordinal" as well.

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Sat Sep 23 12:42:03 2017 +0800
+++ b/candolint/models.py Sat Sep 23 12:43:15 2017 +0800
@@ -95,7 +95,7 @@
class Meta:
indexes = (
- (('ordinal', 'project'), True),
+ (('project', 'ordinal'), True),
(('project', 'finished', 'ordinal'), True)
)