You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "sandynz (via GitHub)" <gi...@apache.org> on 2023/02/09 08:57:55 UTC

[GitHub] [shardingsphere] sandynz opened a new pull request, #24075: Refactor DATA_MATCH consistency check by one query

sandynz opened a new pull request, #24075:
URL: https://github.com/apache/shardingsphere/pull/24075

   
   Changes proposed in this pull request:
     - Refactor DATA_MATCH consistency check by one query
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following options:
   - [ ] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
   - [ ] I have self-reviewed the commit code.
   - [ ] I have (or in comment I request) added corresponding labels for the pull request.
   - [ ] I have passed maven check locally : `./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [ ] I have made corresponding changes to the documentation.
   - [ ] I have added corresponding unit tests for my changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] azexcy commented on pull request #24075: Refactor DATA_MATCH consistency check by one query

Posted by "azexcy (via GitHub)" <gi...@apache.org>.
azexcy commented on PR #24075:
URL: https://github.com/apache/shardingsphere/pull/24075#issuecomment-1423914317

   MySQL and PostgreSQL streaming query
   Streaming queries in mysql and postgresql are different
   
   ```
       /**
        * We only stream result sets when they are forward-only, read-only, and the
        * fetch size has been set to Integer.MIN_VALUE
        * 
        * @return true if this result set should be streamed row at-a-time, rather
        *         than read all at once.
        */
       protected boolean createStreamingResultSet() {
           return ((this.resultSetType == java.sql.ResultSet.TYPE_FORWARD_ONLY) && (this.resultSetConcurrency == java.sql.ResultSet.CONCUR_READ_ONLY)
                   && (this.fetchSize == Integer.MIN_VALUE));
       }
   ```
   
   PostgreSQL
   ```
       // Enable cursor-based resultset if possible.
       if (fetchSize > 0 && !wantsScrollableResultSet() && !connection.getAutoCommit()
           && !wantsHoldableResultSet()) {
         flags |= QueryExecutor.QUERY_FORWARD_CURSOR;
       }
   ```
   
   I will follow this, ensure that operations do not block during large data volumes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] azexcy merged pull request #24075: Refactor DATA_MATCH consistency check by one query

Posted by "azexcy (via GitHub)" <gi...@apache.org>.
azexcy merged PR #24075:
URL: https://github.com/apache/shardingsphere/pull/24075


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] sandynz commented on pull request #24075: Refactor DATA_MATCH consistency check by one query

Posted by "sandynz (via GitHub)" <gi...@apache.org>.
sandynz commented on PR #24075:
URL: https://github.com/apache/shardingsphere/pull/24075#issuecomment-1429064952

   Streaming query is done partially done in #24146


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org