db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Behrang Saeedzadeh <behran...@gmail.com>
Subject Is create=true thread-safe?
Date Fri, 20 Mar 2020 05:24:39 GMT

Is the create=true attribute

In particular, what would happen if 10 threads at the same time try to
obtain this connection:


(when Derby is used as an embedded database)? Is this safe?

The docs say:

> If the database already exists, the attribute creates a connection to the
existing database, and an *SQLWarning* is issued.

But it is not clear if that implies `create=true` is thread safe.

Best regards,
Behrang Saeedzadeh

View raw message