Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL データベースに接続する PHP アプリを実行しています。このデータベースは、特定のアクションに対して負荷が高く、競合が多い場合があります。
一部のアクションは非常に重要であり、2 人の異なるユーザーによって同時にトリガーされた 2 つのプロセスをキューで処理する必要がある場合があります。そうしないと、アクションが 2 回発生する可能性があります。
PHP と MySQL をどのように使えば、このような問題を克服できると思いますか?
MySQL トランザクションおよび/またはロックを使用する。