-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm storing a lot of documents (TREC-9 corpus) in a Doc class/table
created using declarative_base():
class Doc(Base):
__tablename__ = 'doc'
id = Column(Integer, primary_key=True)
I = Column(Integer, index=True) # .I sequential
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Solved it:
def create_indexes(cls, eng):
indexes = cls.metadata.tables[cls.__tablename__].indexes
for idx in indexes:
idx.create(bind=eng)
IOW: RTFM
Regards,
mk
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.20 (MingW32)