What is the max JDBC batch size?

后端 未结 3 995
心在旅途
心在旅途 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:27

    AFAIK there is no limit beside the memory issue. regarding your question: the statement is sent to the DB only on execute batch so until you'll execute the batch the memory will continue to grow until you will get JavaHeapSpace or the batch will be sent to the DB.

提交回复
热议问题