`
chengnuoangel
  • 浏览: 69896 次
  • 性别: Icon_minigender_1
  • 来自: 河南郑州
社区版块
存档分类
最新评论

Hibernate Streams type cannot be use in batching

阅读更多

今天在做Hibernate操作Blob字段时发现报了这个异样

 

Caused by: java.sql.SQLException: 不允许的操作: streams type cannot be used in batching

 

以前测试这个功能是没有问题的,但是以前的测试只是基于小数据量的测试,当把数据值增加超过100时就出现了这个异常--这意味着Oracle JDBC不允许流操作以批量方式执行,

 

解决这个问题的方法是将hibernate jdbc.batch_size的值设置为0即可。

分享到:
评论
1 楼 lucane 2009-10-17  
请问改成0了对效率的影响大吗

相关推荐

    Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams

    After reading and using this book, you'll be proficient in programming reactive streams for Java in order to optimize application performance, and improve memory management and data exchanges. ...

    Kafka Streams in Action 高清文字版 非扫描版

    它的流处理组件Kafka Streams,允许用户在数据流进Kafka之后进行实时的流处理。Kafka Streams是一个轻量级的库,可以嵌入到任何Java应用程序中。使用Kafka Streams,开发者可以轻松地构建实时应用程序和微服务。 在...

    Kafka Streams in Action (MEAP V9)

    Kafka Streams in Action teaches you everything you... By the end of the book, you'll be ready to use Kafka Streams in your projects to reap the benefits of the insight your data holds quickly and easily.

    Reactive Streams in Java.pdf

    Reactive Streams in Java Concurrency with RxJava, Reactor, and Akka Streams. 2019年最新出版,清晰文字PDF,带目录书签。

    Event Streams in Action: Real-time event systems with Kafka and Kinesis

    Event Streams in Action: Real-time event systems with Kafka and Kinesis。 Writing real-world applications in a data-rich environment can feel like being caught in the cross fire of a paintball battle....

    高清彩版 Kafka_Streams_in_Action

    ### 高清彩版 Kafka Streams in Action:深入解析 #### 一、背景介绍与书籍概述 《Kafka Streams in Action》是一本专为希望深入了解Kafka Streams及其在实时数据流处理应用中的实践而编写的书籍。作者Bill Bejeck...

    Manning.Kafka.Streams.in.Action.2018.8

    根据提供的文件信息,我们可以看到这是一本关于Kafka Streams的书籍,名为《Manning.Kafka.Streams.in.Action.2018.8》。这本书由William P. Bejeck Jr.所著,Neha Narkhede作序,涵盖了构建实时应用程序和微服务的...

    hibernate.properties

    ## to use JTATransactionFactory, Hibernate must be able to locate the UserTransaction in JNDI ## default is java:comp/UserTransaction ## you do NOT need this setting if you specify hibernate....

    Hibernate 参数配置详解

    - **示例**:`hibernate.jdbc.use_streams_for_binary=true` #### 四、总结 通过对 Hibernate 配置参数的详细介绍,我们不仅了解了如何优化 Hibernate 的运行效率,还学会了如何根据实际需求调整各种配置以适应...

    kafka-streams-in-action.txt

    kafka streams 实战 。

    hibernate 配置属性参数详情(全)

    6. **hibernate.jdbc.use_streams_for_binary**:在处理二进制或可序列化类型时使用流,提高效率。 7. **hibernate.jdbc.use_get_generated_keys**:在插入数据后,利用JDBC3的`getGeneratedKeys`方法获取自增列的...

    Hibernate 参数设置一览表.doc

    6. **hibernate.jdbc.use_streams_for_binary**:在处理二进制和可序列化类型时使用流,以优化内存使用和性能。 这些参数的调整需要根据具体的应用场景和数据库特性来进行,合理的配置可以显著提升Hibernate应用的...

    hibernate.cfg.xml中配置信息详解

    Hibernate.jdbc.use_streams_for_binary 属性用于控制 Hibernate 是否在 JDBC 读写 binary 或 serializable 类型时使用流(stream)。 hibernate.jdbc.use_get_generated_keys Hibernate.jdbc.use_get_generated_...

    hibernate参数配置

    18. **hibernate.jdbc.use_streams_for_binary**: 在处理二进制或可序列化类型时,使用流进行JDBC读写,提高性能。 19. **hibernate.jdbc.use_get_generated_keys**: 开启后,Hibernate会在插入数据后通过`...

    hibernate_reference.pdf

    - **Binary Streams**: Provides guidance on handling binary streams in Hibernate. - **Second-Level and Query Cache**: Describes how to enable and configure Hibernate's second-level cache and query ...

Global site tag (gtag.js) - Google Analytics