Batch -Database program Solved

Batch update- Write a program that inserts a thousand records to a database, and compare the performance with and without batch updates, as shown in Figure 35.5a. Suppose the table is defined as follows:

create table Temp(num1 double, num2 double, num3 double)

Use the Math.random() method to generate random numbers for each record.

use nanoTime to analize the perfomance of each one of them, batch update and non batch update.
Powered by