Download:
child 297:bb63ea9aa185
parent 295:c54ef744f6e6
296:7ae08f18f2b2
Anton Shestakov <av6@dwimlabs.net>, Mon, 18 Sep 2017 18:52:34 +0800
viewer: create an index for checks to speed up "order by" a lot

1 файлов изменено, 1 вставок(+), 0 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Mon Sep 18 17:12:03 2017 +0800
+++ b/candolint/models.py Mon Sep 18 18:52:34 2017 +0800
@@ -97,6 +97,7 @@
order_by = ('-finished', '-ordinal')
indexes = (
(('ordinal', 'project'), True),
+ (('project', 'finished', 'ordinal'), True)
)
def get_duration(self):