Spring Data JPA ● MySQL用に提供されたSpring Data JPAのサンプルコードを利用してTiDBに接続するデモ ● Getting Started | Accessing data with MySQL ● Spring Boot JPA で MySQL データアクセス - 公式サンプルコード
その他のベストプラクティス ● Best Practices for Developing Java Applications with TiDB | PingCAP Docs ● Batch API ● StreamingResultの利用 ● Prepared Statement ○ server side ○ client side ● タイムアウトパラメータの調整 ● Connection poolの利用