Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af91c9d659 | ||
|
|
89eaaf3a5e | ||
|
|
ab174e2d41 | ||
|
|
cfa9badc1e |
@@ -60,10 +60,10 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||||
|
|
||||||
// Test
|
// Test
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
||||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class MySQLDataHandler(
|
|||||||
) : DataHandler {
|
) : DataHandler {
|
||||||
private val columns = mutableMapOf<String, Column<*>>()
|
private val columns = mutableMapOf<String, Column<*>>()
|
||||||
private val threadFactory = ThreadFactoryBuilder().setNameFormat("eco-mysql-thread-%d").build()
|
private val threadFactory = ThreadFactoryBuilder().setNameFormat("eco-mysql-thread-%d").build()
|
||||||
private val executor = Executors.newCachedThreadPool(threadFactory)
|
private val executor = Executors.newFixedThreadPool(plugin.configYml.getInt("mysql.threads"), threadFactory)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
Database.connect(
|
Database.connect(
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
enabled: false # Set to false, data.yml will be used instead.
|
enabled: false # Set to false, data.yml will be used instead.
|
||||||
|
# How many threads to execute statements on. Higher numbers can be faster however
|
||||||
|
# very high numbers can cause issues with OS configuration. If writes are taking
|
||||||
|
# too long, increase this value.
|
||||||
|
threads: 2
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 3306
|
port: 3306
|
||||||
database: database
|
database: database
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
version = 6.13.8
|
version = 6.13.9
|
||||||
plugin-name = eco
|
plugin-name = eco
|
||||||
Reference in New Issue
Block a user