- くだすれPython(超初心者用) その24
845 :デフォルトの名無しさん[sage]:2014/10/18(土) 07:03:01.65 ID:3SSW63UD - >>804 の質問をしていた者です。
scoped_session()とsessionmakerを以下のように設定すると 検索での一定時間経過後のエラーは出なくなりました。 ○ Session = scoped_session(sessionmaker(autocommit=True, autoflush=True, bind=engine)) × Session = scoped_session(sessionmaker(bind=engine)) × Session = scoped_session(sessionmaker(autocommit=False, autoflush=True, bind=engine)) ○ Session = scoped_session(sessionmaker(autocommit=True, autoflush=False, bind=engine))
|