From bbcfab1dcb1e630043de2893085badcc2b485b28 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 15 Oct 2020 13:02:38 +0200 Subject: [PATCH] Index in real time, we don't do so many transactions --- corres2math/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/corres2math/settings.py b/corres2math/settings.py index fbcb0be..ab0b9eb 100644 --- a/corres2math/settings.py +++ b/corres2math/settings.py @@ -189,6 +189,8 @@ HAYSTACK_CONNECTIONS = { } } +HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' + _db_type = os.getenv('DJANGO_DB_TYPE', 'sqlite').lower() if _db_type == 'mysql' or _db_type.startswith('postgres') or _db_type == 'psql':