先に INSERT を試みて失敗したら SELECT するのか。高スループットな環境で必要な機能。

morygonzalezmorygonzalez のブックマーク 2018/02/15 07:25

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Add #create_or_find_by to lean on unique constraints by dhh · Pull Request #31989 · rails/rails

    Attempts to create a record with the given attributes in a table that has a unique constraint on one or several of its columns. If a row already exists with one or several of these unique constrain...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう