what's the default size of hibernate.jdbc.fetch_size? -
By default we know, the size of most jdbc drivers to fetch is 10.
Does anyone know the size of the default hibernate, namely hibernate.jdbc.fetch_size?
Actually, use all configuration settings for an Then, a This setting is used in This personal method is called when forming the Therefore, the default value is This is actually reference documentation Is summarized in ... And here's what Jawdoc has to say about: The JDBC driver returns a According to the number of lines that requires more rows for the ResultSet object that is generated by this statement, received them from the database should go. If the specified value is zero, then the signal is ignored. default value is zero . In other words, when someone uses ohcSettings
example goes. This is done by ohcSettingsFactory # buildSettings ()
method that is included in the following lines:
Integer statementFetchSize = PropertiesHelper.getInteger (Environment.STATEMENT_FETCH_SIZE, Properties) ; If (statementFetchSize! = Null) log.info ("JDBC result set fetch size:" + FetchSize statement); Settings.setJdbcFetchSize (statementFetchSize);
zero
value is allowed, it will not be translated and will be "publicized". ohjAbstractBatcher.java # setStatementFetchSize
:
throws private set of setStatementFetchSize (PreparedStatement statement) SQLException {integer statementFetchSize = Factory.getSettings () getJdbcFetchSize (). ; If (statementFetchSize! = Null) {statement.setFetchSize (statementFetchSize.intValue ()); }}
created state
or callable location
. See readyQueryStatement
and in the codeable syntiastament
in Sargacquer
. null
and the result in the hibernate is not called Statement # setFetchSize ()
3.4. Optional configuration properties
hibernate.jdbc.fetch_size
: A non-zero value determines the JDBC fetch size (call statement. SetFetchSize ()
)
null
fetch_size
, the JDBC driver will use the default value that is Zero .
Comments
Post a Comment