db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Re: [SHUTDOWN] Should I shutdown embedded data base ?
Date Wed, 29 Mar 2006 17:35:07 GMT
yves pielusenet wrote:

>Hello,
>I'm newto Derby. My application connecte and create a database using
>driver "org.apache.derby.jdbc.EmbeddedDriver" and url
>"jdbc:derby:/my/path/to/database;create=True".
>I do my inserts, commit and at the end I do myConnection.close().
>All works fine :)
>But I have just seen that there is a shutdown option. Should I use
>this ?
>
>thanks :)
>
>--
>Yves piel
>
>
>  
>
Yes.  Shutting down the database insures that all transactions are 
completed and puts a CHECKPOINT record in the transaction log that 
allows a quicker startup when the database is booted next (Derby will 
know that no rollback recovery is needed).



Mime
View raw message