The setting property setting in Sqlmapconfig.xml

Source: Internet
Author: User

<settings     cachemodelsenabled= "true"     lazyloadingenabled= "false"      enhancementenabled= "true"     maxsessions= "Up"     maxtransactions= "8"     maxrequests= "" "    usestatementnamespaces=" false "    Classinfocacheenabled= "true"     errortracingenabled= "true"     Defaultstatementtimeout= ""     statementcachingenabled= "true"    /> <!--  Maxrequests   The maximum number of threads that execute SQL statements concurrently. A thread larger than this value will block until another thread finishes executing. Different DBMS have different limit values, but any database has these restrictions. Typically this value should be at least 10 times times the maxtransactions (see below) and always be greater than maxSessions and maxtranactions. Reducing this parameter value usually improves performance.     For example: maxrequests= "down"   default value: Max    maxsessions   The maximum number of sessions in the same time. A session can be maxsessions an explicit session of a code request, or it can be a session automatically obtained by a thread using an Sqlmapclient instance (that is, executing a statement). It should always be greater than or equal to maxtransactions and less than maxrequests. Reducing this parameter value usually reduces memory usage.     For example: maxsessions= "&N"BSP; Default:    maxtransactions   Maximum number of threads maxtransactions simultaneously entering sqlmapclient.starttransaction (). A thread larger than this value will block until another thread exits. Different DBMS have different limit values, but any database has these restrictions. This parameter value should always be less than or equal to maxsessions and is always much smaller than maxrequests. Reducing this parameter value usually improves performance.     For example: maxtransactions= "+"   default: +    cachemodelsenabled   globally enable or disable Sqlmapclient Cachemodelsenabled model for all caches. used when debugging a program.     For example: Cachemodelsenabled= "true"   default value: True (enabled)    lazyloadingenabled   Globally enables or disables all lazy loading of sqlmapclient. Lazyloadingenabled is used when debugging a program.   Example: lazyloadingenabled= "true"   default: True (enabled)    enhancementenabled   globally enable or disable runtime bytecode enhancement, To optimize the performance of enhancementenabled   ask Java Bean properties while optimizing the performance of lazy loading.     Example: enhancementenabled= "true"   default: False (Disabled)    usestatementnamespaces   If this property is enabled, You must use the fully qualified name to refer to the mapped usestatementnamespaces  statement. The fully qualified name of the Mapped statement is synthesized by the name of Sql-map and the name of the mapped-statement. For example: queryForObject ("Sqlmapname.statementname");     For example: USESTATEMENTNAmespaces= "false"   default value: False (Disabled)

Defaultstatementtimeout This setting value must be an integer, which can be reset by the statement property of any map file, if not specified, as the time the JDBC connection times out. The query will have no time-out limit unless the statement property value is set in the mapping file. The set value waits in seconds for the connection to fail classinfocacheenabled with the setting enabled, IBATIS will maintain a cache of introspected classe  S. This'll leads to a significant reduction in startup time if many classes is reused. For example: classinfocacheenabled= "true" Default value: True (Enabled) statementcachingenabled (IBATIS 2.3.0 later version) with this setting enable D, IBATIS would maintain a local cache of prepared statements.  This can leads to significant performance improvements. Example: statementcachingenabled= "true" Default value: True (enabled)-

The setting property setting in Sqlmapconfig.xml

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.