Skip to content
Browse files

Merge pull request #1 from webitup/master

Add sql indexes
  • Loading branch information...
2 parents 36a96ea + 03ff409 commit edea00e69fb5076b36d41dfae867635ed219d25d @alberanid committed Feb 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 imdb/parser/sql/
8 imdb/parser/sql/
@@ -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,
DBCol('namePcodeNf', STRINGCOL, length=5, default=None,
@@ -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,
DBCol('episodeOfID', INTCOL, default=None, index='idx_epof',
- 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),

0 comments on commit edea00e

Please sign in to comment.
Something went wrong with that request. Please try again.