You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/06/01 02:06:55 UTC

[GitHub] [shardingsphere] yu199195 commented on issue #5858: When batch inserting, only the primary key of the first data is returned

yu199195 commented on issue #5858:
URL: https://github.com/apache/shardingsphere/issues/5858#issuecomment-636575324


   @jukai5501  i test and debug This function of Distributed primary key generation,it work well, mybe you config have some error ,log sharding config on the console.,Here is the reference :(Please be careful to align ,In the configuration you mentioned above, there may be errors)
   
   ```
   spring:
       shardingsphere:
           sharding:
                 tables:
                     t_order:
                        actualDataNodes: ds_$->{0..1}.t_order
                        keyGenerator:
                             column: order_id
                             props:
                                    worker.id: '123'
                             type: SNOWFLAKE
   ```


----------------------------------------------------------------
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.

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