I found a message with this exact same question on this groups in 2008, but I'm not able to answer there, so I reopen a new thread to continue the discussion (original discussion could be found here: http://groups.google.com/group/h2-database/browse_thread/thread/3dd69f52fb736f9/f47b8990f2a3e076?lnk=gst&q=close#f47b8990f2a3e076 )
The OP was asking the following > I got a database with one open connection. If I call close() will the > database be closed for good after the call returns? To which Thomas Mueller answer: > By default, yes, the database is closed when the last connection is > closed. You can prevent that using the DB_CLOSE_DELAY, see also > http://www.h2database.com/html/grammar.html#setdbclosedelay But I experiment a different behavior. When doing quite important operation (like inserting 50.000 rows), after the connection.close(), I still have to wait like 1500 millisec before being able to delete the DB files. I did not see such behavior on Linux system, but only on Windows, so I'm wondering if it is not something related to the filesystem rather to the H2 engine. Any thoughts ? -- Hugo -- 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.
