mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
more performance tweaks
This commit is contained in:
@@ -7,8 +7,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import javax.ejb.Asynchronous;
|
import javax.ejb.Asynchronous;
|
||||||
import javax.ejb.Stateless;
|
import javax.ejb.Stateless;
|
||||||
import javax.ejb.TransactionAttribute;
|
|
||||||
import javax.ejb.TransactionAttributeType;
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
@@ -28,7 +26,6 @@ import com.commafeed.backend.model.FeedSubscription;
|
|||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
@Stateless
|
@Stateless
|
||||||
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
|
||||||
public class FeedUpdateService {
|
public class FeedUpdateService {
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
<!--
|
<!--
|
||||||
<Resource id="MySQL" type="DataSource">
|
<Resource id="MySQL" type="DataSource">
|
||||||
JdbcDriver com.mysql.jdbc.Driver
|
JdbcDriver com.mysql.jdbc.Driver
|
||||||
JdbcUrl jdbc:mysql://localhost/commafeed?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
|
JdbcUrl jdbc:mysql://localhost/commafeed?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&maxReconnects=20
|
||||||
UserName cf
|
UserName cf
|
||||||
Password cf
|
Password cf
|
||||||
MaxActive 40
|
MaxActive 50
|
||||||
</Resource>
|
</Resource>
|
||||||
-->
|
-->
|
||||||
<Container id="CommaFeedStateless" type="STATELESS">
|
<Container id="CommaFeedStateless" type="STATELESS">
|
||||||
|
|||||||
Reference in New Issue
Block a user