I want to create a lot of blob in java [in memory] and write it to an Oracle table.
I want the blob [bit inside it] to be random or random, so that the oracle cannot perform a lot of preliminary optimization while saving the blob in the table.
Sort of
for(1..1000000)
{
blob = createRandomBlob(sizeOfBlob);
sqlText ="INSERT INTO test_blob (id, blob) VALUES(i, blob)";
stmt.executeUpdate(sqlText);
}
Can someone please indicate which JAVA-API I can use to create such a blob [in memory, not on disk] and write it in db?
thank
source
share