Skip to content

Commit

Permalink
fix: try to fix number of bind variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed May 21, 2024
1 parent f3ab79e commit c7f6529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ public void execQueryTemporaryInsertRegisteredFiles(FilesDescriber registeredFil
}
if (requete.getParameters().size()>FormatSQL.MAXIMUM_NUMBER_OF_BIND_IN_PREPARED_STATEMENT)
{
requete.append(SQL.COMMIT);
requete.append(SQL.END_QUERY);
UtilitaireDao.get(0).executeRequest(this.sandbox.getConnection(), requete);
requete = new ArcPreparedStatementBuilder();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private FormatSQL() {
public static final boolean DROP_FIRST_TRUE = true;

public static final int TAILLE_MAXIMAL_BLOC_SQL = 700000;
public static final int MAXIMUM_NUMBER_OF_BIND_IN_PREPARED_STATEMENT = 50000;
public static final int MAXIMUM_NUMBER_OF_BIND_IN_PREPARED_STATEMENT = 20000;

public static final int TIMEOUT_MAINTENANCE = 600000;

Expand Down

0 comments on commit c7f6529

Please sign in to comment.