Начал изучать процедурную генерацию
scala> (30720 * 17280 * 4) / 1024 / 1024 / 1024
val res10: Int = 1
Zeroes : 1706596
Dead beefs : 4568
(sizeof(int) + 1200) * 500 = (logical size of information) = 602000
Zeroes to Used : 0.727137
PreparedStatement pst2 = conn.prepareStatement("update test set data = ? where key = ?");
byte[] deadBeef = prepareDeadBeef(BYTES); // DE AD BE EF ...
System.out.printf("size(deadBeef blob) = %d\n", deadBeef.length);
for(int i = 0; i < 500 ; i++) {
pst2.setBytes(1, deadBeef);
pst2.setInt(2, i);
pst2.execute();
}
pst2.close();
conn.commit();
conn.close();size(deadBeef blob) = 1200
Zeroes : 2154456
Dead beefs : 160096
(sizeof(int) + 1200) * 500 = (logical size of information) = 602000
Zeroes to Used : 0.926039