動作環境
gradle
1org.postgresql:postgresql:9.3-1102-jdbc41 2org.mybatis:mybatis:3.2.7
RedShiftに接続してデータ取得をしています。動的に生成しているクエリは下記のようなものです
sql
1SELECT * FROM sample_table WHERE 2 <foreach item="item" collection="lists" open="(" close=")" separator=" OR "> 3 (xxx BETWEEN #{item.From} AND #{item.To}) 4 </foreach> 5 6```mybatisに設定するパラメータのlistのサイズが3000以上くらいのときエラーを吐いて、抽出に失敗します。サイズが少ないと条件通り抽出できます。 7 8```java 92015-11-07 12:46:26,672 [main] ERROR Main - org.apache.ibatis.exceptions.PersistenceException: 10### Error querying database. Cause: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend. 11### The error may exist in com/xxx/sql/sql_redshift.xml 12### The error may involve com.xxx.sql.findXXXs-Inline 13### The error occurred while setting parameters
クエリが長すぎることのIOエラーのような感じですが、なにかいい方法はありますか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。