hibernate insert batch with partitioned postgresql

前端 未结 6 1548
一生所求
一生所求 2021-02-07 21:27

is there a solution for batch insert via hibernate in partitioned postgresql table? currently i\'m getting an error like this...

ERROR org.hibernate.jdbc.Abstra         


        
6条回答
  •  不知归路
    2021-02-07 21:39

    They say to use two triggers in a partitioned table or the @SQLInsert annotation here: http://www.redhat.com/f/pdf/jbw/jmlodgenski_940_scaling_hibernate.pdf pages 21-26 (it also mentions an @SQLInsert specifying a String method).

    Here is an example with an after trigger to delete the extra row in the master: https://gist.github.com/copiousfreetime/59067

提交回复
热议问题