Index in real time, we don't do so many transactions

This commit is contained in:
Yohann D'ANELLO 2020-10-15 13:02:38 +02:00
parent 6c59bf11be
commit bbcfab1dcb
1 changed files with 2 additions and 0 deletions

View File

@ -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':