What is the max JDBC batch size?

后端 未结 3 999
心在旅途
心在旅途 2021-02-04 06:59

I have a list and that list increasing continuously. I am doing add batch depend on the list size. I forgot to put limit for do executeBatch in specified size.

Program

3条回答
  •  一个人的身影
    2021-02-04 07:24

    There may be a maximum number of parameter markers depending on the JDBC implementation.

    For instance the PostgreSQL driver represents the number of parameters as a 2-byte integer, which in Java is at most 32768.

提交回复
热议问题