Ignore:
Timestamp:
May 24, 2016, 1:57:41 PM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2009: PostgreSQL seems to be loading entire result set into memory

Adding jdbc.fetch_size configuration property to hibernate.cfg.xml. Hopefully Hibernate will pick it up wherever possible.

We are also picking it up in the BASE core API and use the same setting for queries were we bypass Hibernate.

It is verified to work for the raw data query in #2004 and http://baseplugins.thep.lu.se/ticket/887

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/dist/hibernate.cfg.xml

    r6468 r7156  
    3131    <!-- JDBC/SQL options -->
    3232    <property name="jdbc.batch_size">0</property>
     33    <property name="jdbc.fetch_size">1000</property>
    3334    <property name="show_sql">false</property>
    3435    <property name="connection.release_mode">after_transaction</property>
Note: See TracChangeset for help on using the changeset viewer.