看板 Python 關於我們 聯絡資訊
目前有三段 sql 如果用firefox的sqlite插件執行,大概只要500ms就跑完了 而且結果正確 但是改成 python 裡呼叫 cursor.execute 或 executescript 卻跑也跑不完 有人也遇過這種問題嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.245.66.11 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1469883385.A.24A.html
kenduest: 程式碼來看看 07/30 23:21
http://www.codeskulptor.org/#user41_u8JemDF2ihVA9aO.py 表格內容 -> (文件id, 詞彙, 出現次數) ※ 編輯: aaaba (27.245.66.11), 07/30/2016 23:50:20
uranusjr: 我猜你有 process 把資料 write lock 了, 根本卡住 07/31 01:58
uranusjr: *資料庫 07/31 01:59
aaaba: 我如果只用最內圈的select,是會有結果出來的 07/31 10:22
WusoAiwen: sqilte3單比讀取效能是很優異的! 07/31 20:20
tacovirus: 記得要 commit() 08/04 10:10
tacovirus: 我是指用 Python 時需要 commit() 08/04 10:10