Hi,

> separate thread

The separate thread is only created when calling
Connection.createBlob(), and then Blob.setBinaryStream().

For H2, PreparedStatement.setBytes is a lot more efficient. Or
PreparedStatement.setBinaryStream (if you don't know the length, use
-1, or the method without the length when using Java 6).

> With a BLOB that small, you'd be better off using a larger PAGE_SIZE, and a
> VARBINARY column.

I agree. 1 KB isn't large, and the BLOB overhead is most likely larger
than the benefit.

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to