Skip to content

Commit

Permalink
Add sql indexes
Browse files Browse the repository at this point in the history
 * title.imdb_id
 * title.episode_nr
 * title.season_nr
 * name.imdb_id
  • Loading branch information
etabard committed Feb 25, 2012
1 parent 36a96ea commit 03ff409
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imdb/parser/sql/dbschema.py
Expand Up @@ -187,7 +187,7 @@ def __repr__(self):
DBCol('id', INTCOL, notNone=True, alternateID=True),
DBCol('name', UNICODECOL, notNone=True, index='idx_name', indexLen=6),
DBCol('imdbIndex', UNICODECOL, length=12, default=None),
DBCol('imdbID', INTCOL, default=None),
DBCol('imdbID', INTCOL, default=None, index='idx_imdb_id'),
DBCol('namePcodeCf', STRINGCOL, length=5, default=None,
index='idx_pcodecf'),
DBCol('namePcodeNf', STRINGCOL, length=5, default=None,
Expand Down Expand Up @@ -239,13 +239,13 @@ def __repr__(self):
DBCol('imdbIndex', UNICODECOL, length=12, default=None),
DBCol('kindID', INTCOL, notNone=True, foreignKey='KindType'),
DBCol('productionYear', INTCOL, default=None),
DBCol('imdbID', INTCOL, default=None),
DBCol('imdbID', INTCOL, default=None, index="idx_imdb_id"),
DBCol('phoneticCode', STRINGCOL, length=5, default=None,
index='idx_pcode'),
DBCol('episodeOfID', INTCOL, default=None, index='idx_epof',
foreignKey='Title'),
DBCol('seasonNr', INTCOL, default=None),
DBCol('episodeNr', INTCOL, default=None),
DBCol('seasonNr', INTCOL, default=None, index="idx_season_nr"),
DBCol('episodeNr', INTCOL, default=None, index="idx_episode_nr"),
# Maximum observed length is 44; 49 can store 5 comma-separated
# year-year pairs.
DBCol('seriesYears', STRINGCOL, length=49, default=None),
Expand Down

0 comments on commit 03ff409

Please sign in to comment.