Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5497

Crowd - Documentation for rewriteBatchedStatements parameter

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Suggestion Summary

      Create documentation or add information to Crowd with MySQL page that clarifies the usage of parameter rewriteBatchedStatements found in Crowd JDBC string after configuration with MySQL database.

      Environment

      Steps to Reproduce:

      1. After configuring Crowd (version 3.2 onwards) with MySQL, edit file crowd.cfg.xml
      2. Go to property <property name="hibernate.connection.url">jdbc:mysql:example_database?rewriteBatchedStatements=true</property>
      3. rewriteBatchedStatements=true will be set

      Expected Results

      We should have a documentation that allows us to explain customers about parameters from the application.

      Actual Results

      We can't find Atlassian documentation that explains parameter rewriteBatchedStatements.

      Notes from Crowd DoS

      rewriteBatchedStatements=true is available since Crowd 3.2 when development did some performance improvements with regard to Crowd database connectivity, and added this parameter as part of the improvements. Crowd will automatically add this parameter if it detects MySQL Database, and similar parameters are in place for other database engines as well.

      This is purely meant to improve the performance of Crowd's syncs.

      If you would like Crowd to not add this parameter by default then, you should supply the parameter by yourself with false value in the DB connection URL.

            [CWD-5497] Crowd - Documentation for rewriteBatchedStatements parameter

            Aakrity Tibrewal made changes -
            Resolution New: Low Engagement [ 10300 ]
            Status Original: Gathering Interest [ 11772 ] New: Closed [ 6 ]
            Aakrity Tibrewal made changes -
            Labels New: cleanup-seos-fy25
            Gustavo P made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1011946 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Nilton G. Junior made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 991660 ]
            JayBe (Inactive) made changes -
            Summary Original: Crowd 3.7.0 - Documentation for rewriteBatchedStatements parameter New: Crowd - Documentation for rewriteBatchedStatements parameter
            JayBe (Inactive) made changes -
            Description Original: h3. Suggestion Summary

            Create documentation or add information to [Crowd with MySQL page|https://confluence.atlassian.com/crowd/mysql-4030924.html] that clarifies the usage of parameter *rewriteBatchedStatements* found in Crowd JDBC string after configuration with MySQL database.

            h3. Environment
             * Crowd 3.2 onwards
             * [Supported version of MySQL DB|https://confluence.atlassian.com/crowd/supported-platforms-191851.html]

            h3. Steps to Reproduce:
             # After configuring Crowd (version 3.2 onwards) with MySQL, edit file crowd.cfg.xml
             # Go to property <property name="hibernate.connection.url">jdbc:mysql:example_database?rewriteBatchedStatements=true</property>
             # *rewriteBatchedStatements=true* will be set

            h3. Expected Results

            We should have a documentation that allows us to explain customers about parameters from the application.

            h3. Actual Results

            We can't find Atlassian documentation that explains parameter *rewriteBatchedStatements*.

            Hi [~jbondan@atlassian.com],

            This is Crowd DoS.

            I just looked at the conversation on the ticket, and I am pleased to see that the customer was able to resolve the performance issue with the help of that index, which makes sense for them because they have extraordinary number of rows in cwd_membership, amounting to more than 3.5 million.

            Also, one important point to note that since Crowd 3.2 we did some performance improvement with regard to Crowd database connectivity, and 
            {code:java}
            rewriteBatchedStatements=true
            {code}
            is one of them, Crowd automatically adds this parameter if it detects MySQL db, and similar parameters are in place for other database engines as well.

            This is purely meant to improve the performance of Crowd's syncs.

            If you would like Crowd to not add this parameter by default then, you should supply the parameter by yourself with *false* value in the DB connection URL.

            Gaurav Agarwal
            New: h3. Suggestion Summary

            Create documentation or add information to [Crowd with MySQL page|https://confluence.atlassian.com/crowd/mysql-4030924.html] that clarifies the usage of parameter *rewriteBatchedStatements* found in Crowd JDBC string after configuration with MySQL database.

            h3. Environment
             * Crowd 3.2 onwards
             * [Supported version of MySQL DB|https://confluence.atlassian.com/crowd/supported-platforms-191851.html]

            h3. Steps to Reproduce:
             # After configuring Crowd (version 3.2 onwards) with MySQL, edit file crowd.cfg.xml
             # Go to property <property name="hibernate.connection.url">jdbc:mysql:example_database?rewriteBatchedStatements=true</property>
             # *rewriteBatchedStatements=true* will be set

            h3. Expected Results

            We should have a documentation that allows us to explain customers about parameters from the application.

            h3. Actual Results

            We can't find Atlassian documentation that explains parameter *rewriteBatchedStatements*.

            h3. Notes from Crowd DoS

            {{rewriteBatchedStatements=true}} is available since Crowd 3.2 when development did some performance improvements with regard to Crowd database connectivity, and added this parameter as part of the improvements. Crowd will automatically add this parameter if it detects MySQL Database, and similar parameters are in place for other database engines as well.

            This is purely meant to improve the performance of Crowd's syncs.

            If you would like Crowd to not add this parameter by default then, you should supply the parameter by yourself with *false* value in the DB connection URL.
            JayBe (Inactive) created issue -

              Unassigned Unassigned
              jbondan@atlassian.com JayBe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: