diff --git a/jupyterhub/orm.py b/jupyterhub/orm.py index 58fe5857..61461e68 100644 --- a/jupyterhub/orm.py +++ b/jupyterhub/orm.py @@ -427,7 +427,7 @@ class OAuthAccessToken(Hashed, Base): # from Hashed hashed = Column(Unicode(64)) - prefix = Column(Unicode(16)) + prefix = Column(Unicode(16), index=True) def __repr__(self): return "<{cls}('{prefix}...', user='{user}'>".format(