mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 21:24:49 +00:00
* Use an Infinispan cache to maintain pending puts, which avoids the need to control it's memory consumption in the critical path of putFromLoad. * This cache is shared by all regions, and it's configured with aggressive expiration settings to avoid piling up pending put operations. * Added a 2LC stress test that tests behaivour and performance of 2LC under multiple situations, such as entity inserts, updates, find via PK, find via query and deletes. * Some other minor performance enhancements, such as avoiding classloader aware cache wrapper if using 2LC locally. * Remove cache adapter to reduce construction of useless objects. * Cache flagged caches in order to avoid recomputing decorated caches all the time, which reduces memory consumption. * Skip locking for timestamp updates and separate timestamp region implementations for local vs clustered scenarios.
43 lines
1.3 KiB
Groovy
43 lines
1.3 KiB
Groovy
configurations {
|
|
all*.exclude group: 'org.jboss.logging', module: 'jboss-logging-spi'
|
|
}
|
|
|
|
dependencies {
|
|
compile project( ':hibernate-core' )
|
|
compile( libraries.infinispan )
|
|
compile( libraries.rhq )
|
|
|
|
testCompile project( ':hibernate-testing' )
|
|
testCompile( libraries.infinispan_test )
|
|
testCompile( libraries.jboss_common_core )
|
|
testCompile( libraries.jnp_client )
|
|
testCompile( libraries.jnp_server )
|
|
testCompile( libraries.rhq )
|
|
testCompile ('mysql:mysql-connector-java:5.1.17')
|
|
}
|
|
|
|
test {
|
|
systemProperties['java.net.preferIPv4Stack'] = true
|
|
systemProperties['jgroups.ping.timeout'] = 500
|
|
systemProperties['jgroups.ping.num_initial_members'] = 1
|
|
systemProperties['jgroups.udp.enable_bundling'] = false
|
|
systemProperties['jgroups.bind_addr'] = 'localhost'
|
|
// Use Infinispan's test JGroups stack that uses TEST_PING
|
|
systemProperties['hibernate.cache.infinispan.jgroups_cfg'] = 'stacks/tcp.xml'
|
|
// systemProperties['log4j.configuration'] = 'file:/log4j/log4j-infinispan.xml'
|
|
enabled = true
|
|
}
|
|
|
|
task packageTests(type: Jar) {
|
|
from sourceSets.test.output
|
|
classifier = 'tests'
|
|
}
|
|
|
|
task sourcesTestJar(type: Jar, dependsOn:classes) {
|
|
from sourceSets.test.allSource
|
|
classifier = 'test-sources'
|
|
}
|
|
|
|
artifacts.archives packageTests
|
|
artifacts.archives sourcesTestJar
|