mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
import using small database transactions, not a huge one with the whole OPML in it, prevents long table lock
This commit is contained in:
@@ -5,6 +5,8 @@ import java.util.List;
|
||||
|
||||
import javax.ejb.Asynchronous;
|
||||
import javax.ejb.Stateless;
|
||||
import javax.ejb.TransactionAttribute;
|
||||
import javax.ejb.TransactionAttributeType;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@@ -20,6 +22,7 @@ import com.sun.syndication.feed.opml.Outline;
|
||||
import com.sun.syndication.io.WireFeedInput;
|
||||
|
||||
@Stateless
|
||||
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
||||
public class OPMLImporter {
|
||||
|
||||
private static Logger log = LoggerFactory.getLogger(OPMLImporter.class);
|
||||
|
||||
Reference in New Issue
Block a user