Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
d9b67dfa
Commit
d9b67dfa
authored
Feb 15, 2017
by
Peter van 't Hof
Browse files
Adding thread limit
parent
b8a18f16
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/summary/db/SummaryDb.scala
View file @
d9b67dfa
...
...
@@ -308,7 +308,7 @@ object SummaryDb {
config
.
setBusyTimeout
(
"10000"
)
config
.
setSynchronous
(
org
.
sqlite
.
SQLiteConfig
.
SynchronousMode
.
OFF
)
val
exist
=
file
.
exists
()
val
db
=
Database
.
forURL
(
s
"jdbc:sqlite:${file.getAbsolutePath}"
,
driver
=
"org.sqlite.JDBC"
,
prop
=
config
.
toProperties
)
val
db
=
Database
.
forURL
(
s
"jdbc:sqlite:${file.getAbsolutePath}"
,
driver
=
"org.sqlite.JDBC"
,
prop
=
config
.
toProperties
,
executor
=
AsyncExecutor
(
"single_thread"
,
1
,
1000
)
)
val
s
=
new
SummaryDb
(
db
)
if
(!
exist
)
s
.
createTables
()
summaryConnections
+=
file
->
s
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment