Best practices for multithreaded processing of database records

前端 未结 5 1089
小蘑菇
小蘑菇 2020-12-31 05:11

I have a single process that queries a table for records where PROCESS_IND = \'N\', does some processing, and then updates the PROCESS_IND to \'Y\'

5条回答
  •  星月不相逢
    2020-12-31 05:50

    Convert the procedure to a single SQL statement and process multiple rows as a single batch. This is how databases are supposed to work.

提交回复
热议问题