Commit f79acb20 by ‘chizw’

[+]sql优化

1 parent 94254f3b
...@@ -56,8 +56,8 @@ def select_ali_asr_model_res(task_id: str): ...@@ -56,8 +56,8 @@ def select_ali_asr_model_res(task_id: str):
"select id,task_id,file_url,task_status,output_data,exception_msg" "select id,task_id,file_url,task_status,output_data,exception_msg"
" from ali_asr_model_res aamr" " from ali_asr_model_res aamr"
" where del_flag = 0 and " " where del_flag = 0 and "
"task_id = %s and exception_limit < 3;" "task_id = %s and exception_limit < 3"
"order by created_time desc" "order by created_time desc;"
) )
return pool.select_all(select_sql, (task_id,)) return pool.select_all(select_sql, (task_id,))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!