Large ResultSet on postgresql query

前端 未结 4 1672
难免孤独
难免孤独 2021-01-05 23:57

I\'m running a query against a table in a postgresql database. The database is on a remote machine. The table has around 30 sub-tables using postgresql partitioning capabili

4条回答
  •  执念已碎
    2021-01-06 00:46

    I did everything above, but I needed one last piece: be sure the call is wrapped in a transaction and set the transaction to read only, so that no rollback state is required.

    I added this: @Transactional(readOnly = true)

    Cheers.

提交回复
热议问题