Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Feb 25, 2012
@etabard etabard Add sql indexes
 * title.imdb_id
 * title.episode_nr
 * title.season_nr
 * name.imdb_id
03ff409
@alberanid Merge pull request #1 from webitup/master
Add sql indexes
edea00e
Showing with 4 additions and 4 deletions.
  1. +4 −4 imdb/parser/sql/dbschema.py
View
8 imdb/parser/sql/dbschema.py
@@ -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,
@@ -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),

No commit comments for this range

Something went wrong with that request. Please try again.