Skip to content

Commit

Permalink
[ 1841959 ] OutOfMemory on initial load with MySQL 5 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 30, 2007
1 parent 945b1cc commit a3d8f34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion symmetric/src/main/resources/symmetric-database.xml
Expand Up @@ -37,13 +37,17 @@
<property name="queryTimeout" value="${db.sql.query.timeout.seconds}"/>
</bean>

<!-- Data Loader without query timeout to fix memory problems with MySQL 5 driver -->
<bean id="dataLoaderTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource" />
</bean>

<bean id="dbDialect" class="org.jumpmind.symmetric.db.DbDialectFactory" scope="singleton">
<property name="dataSource" ref="dataSource" />
</bean>

<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
<property name="defaultTimeout" value="${db.tx.timeout.seconds}"/>
</bean>

<bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
Expand Down
2 changes: 1 addition & 1 deletion symmetric/src/main/resources/symmetric-services.xml
Expand Up @@ -311,7 +311,7 @@

<bean id="dataLoader" class="org.jumpmind.symmetric.load.csv.CsvLoader" scope="prototype">
<property name="dbDialect" ref="dbDialect" />
<property name="jdbcTemplate" ref="jdbcTemplate" />
<property name="jdbcTemplate" ref="dataLoaderTemplate" />
<property name="enableFallbackInsert" value="true" />
<property name="enableFallbackUpdate" value="true" />
<property name="allowMissingDelete" value="true" />
Expand Down

0 comments on commit a3d8f34

Please sign in to comment.