Extract DB files to a subdirectory within temporary folder
belugabehr opened this issue · 2 comments
belugabehr commented
Is your feature request related to a problem? Please describe.
The library performs a cleanup routine of the /tmp
directory at the start of every execution.
This means that the duration of time to perform this action depends on the number of files in the /tmp
directory at the time of startup.
Describe the solution you'd like
This can be mostly mitigated by first creating a sub-directory in the /tmp
directory (e.g., "xerial-sqlite-jdbc") and only store JDBC native libs in this directory. The size of this directory will be much less at risk of having large numbers of files present.
gotson commented
PR welcome
gotson commented
I thought about that, and we already have org.sqlite.tmpdir
, so this seems redundant. What do you think?