OBS - Database schema has changed! If you use south, you need to run manage.py migrate!

This adds db indexing on a set of important database fields, all in the interest of optimization.
This commit is contained in:
Griatch 2012-02-06 13:18:25 +01:00
parent b87f787c38
commit 42d502bfc6
8 changed files with 480 additions and 8 deletions

View file

@ -395,7 +395,7 @@ class Channel(SharedMemoryModel):
# named same as the field, but withtout the db_* prefix.
# unique identifier for this channel
db_key = models.CharField('key', max_length=255, unique=True)
db_key = models.CharField('key', max_length=255, unique=True, db_index=True)
# optional description of channel
db_desc = models.CharField('description', max_length=80, blank=True, null=True)
# aliases for the channel. These are searched by cmdhandler