Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql JPA 2.1/Hibernate 5.2.17中查询集合参数的最大大小_Postgresql_Hibernate_Jpa_Jpa 2.1 - Fatal编程技术网

Postgresql JPA 2.1/Hibernate 5.2.17中查询集合参数的最大大小

Postgresql JPA 2.1/Hibernate 5.2.17中查询集合参数的最大大小,postgresql,hibernate,jpa,jpa-2.1,Postgresql,Hibernate,Jpa,Jpa 2.1,JPA 2.1/Hibernate 5.2.17中是否有查询集合参数的最大大小(如果有必要,使用JDBC驱动程序连接到PostgreSQL) e、 例如,为了避免JPA/Hibernate/PostreSQL中可能出现的任何错误或问题,以下代码中ID的最大允许和/或建议大小是多少 @Query("select ee from ExampleEntity ee where ee.exampleId in :ids") fun findAllIn(ids: Collection<Long>

JPA 2.1/Hibernate 5.2.17中是否有查询集合参数的最大大小(如果有必要,使用JDBC驱动程序连接到PostgreSQL)

e、 例如,为了避免JPA/Hibernate/PostreSQL中可能出现的任何错误或问题,以下代码中ID的最大允许和/或建议大小是多少

@Query("select ee from ExampleEntity ee where ee.exampleId in :ids")
fun findAllIn(ids: Collection<Long>): Collection<ExampleEntity>
@Query(“从ExampleEntity ee中选择ee,其中ee.exampleId位于:ids中”)
fun findAllIn(ID:集合):集合

我认为JDBC驱动程序有32000个参数的限制(或者类似的限制)。我们有一个错误,超过1000个参数。@SvenM。您是否在PostgreSQL中遇到此错误?还是MS SQL Server?@naXa抱歉,我只能确认这个Oracle。但我的意思是错误信息来自Spring。我认为问题在于他不能构建一个参数超过1000个的语句。但我不太确定。