Files
zulip/zerver/migrations/0072_realmauditlog_add_index_event_time.py
Rishi Gupta b396be4c98 models: Add index on RealmAuditLog.event_time.
Useful for the upcoming check_realmauditlog_by_user_query, if nothing else.

But I suspect it will indeed get use; looking for events around or within a
certain time is pretty natural for an audit log.

The main argument against I would say is that this should actually be a
joint index with something else. I'm not sure what that something else
should be, so just optimizing for what I think
check_realmauditlog_by_user_query will need for now.
2017-04-14 11:41:07 -07:00

21 lines
479 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-31 05:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0071_rename_realmalias_to_realmdomain'),
]
operations = [
migrations.AlterField(
model_name='realmauditlog',
name='event_time',
field=models.DateTimeField(db_index=True),
),
]