PHP код:
static void Job42(Args _args)
{
myTable myTable;
RecordInsertList ril = new RecordInsertList(tableNum(myTable), true, true);
int i, t = timeNow();
;
delete_from myTable;
t = timeNow();
for(i = 1; i <= 10000 ; i++)
{
myTable.clear();
myTable.Name = int2str(i);
myTable.Label = int2str(i);
ril.add(myTable);
}
ril.insertDatabase();
info(int2str(timenow() - t));
delete_from myTable;
t = timeNow();
for(i = 1; i <= 10000 ; i++)
{
myTable.clear();
myTable.Name = int2str(i);
myTable.Label = int2str(i);
myTable.doInsert();
}
info(int2str(timenow() - t));
}