maruhachi / pg15-merge

postgres 15 new feature MERGE word suburi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres15で追加されたMerge文を試してみる

やったこと

  • SpringDataJPA でDB呼び出しを実装
    • TraditionalRepository … 従来の、Selectして一旦レコードの存在確認をしてからInsert/Updateを切り替える
    • NewfeatureRepository … Merge文を使ってInsert/Updateを切り替える
  • v15のpostgresの構築
    • dockerhubにあったPostgresの15rcのイメージを使ってコンテナを立てる

参考ページ

About

postgres 15 new feature MERGE word suburi.


Languages

Language:Java 96.5%Language:Dockerfile 3.5%