存档和删除过程。推荐哪一个?
当窗口关闭除此之外的任何无关交易以禁止干扰以下 tx 时,此过程将在一天结束时运行。
一、批量删除
object = read()
while ( hasNext() )
{
object = next();
call the archive_process to archive the object.
add to delete.
}
batch_delete.
二、单个删除语句。
object = read()
while ( hasNext() )
{
object = next();
call the archive_process to archive the object.
}
use the same sql as above, but instead delete in a single statement.
推荐哪一个?