DongJigong commented on issue #2903: ComplexCustomAlgorithm will load every single row by id URL: https://github.com/apache/incubator-shardingsphere/issues/2903#issuecomment-523718576 > @DongJigong , your question is not problem caused by ShardingSphere. > JPA will do query before persisting, if the entity has existed, the entity will not persist and return directly. > > you can try to use original JDBC. it also query your table before update. > > If you ask why the query will route to all actual node, the reason is the query generated by JPA without sharding column, it will cause full-routing. I have got your point. If I use JPA with Hsql, it could avoid a full-routing query?
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
