1

オープン ソースのソーシャル ネットワーキング サイトである Elgg の構成オプションを調べていました。データベース接続を読み取りと書き込みに分割し、さらに読み取りと書き込みの複数の接続を可能にするオプションがありました。

読み取りと書き込みの分割が必要な理由はわかりません。

よくわからない場合は、53 行目と 54 行目を調べてくださいhttp://reference.elgg.org/settings_8example_8php-source.html

4

2 に答える 2

1

私はこれに対する答えを見つけました here . それが将来誰かに役立つことを願っています。

于 2010-08-17T11:37:46.060 に答える
0

At my previous job we were running 2 MySQL servers for our system. One being the read, and the other being the write. These server's were mirrored. Reason for this is that when you are doing SELECT, INSERT etc it puts a lock on the table which will prevent access from other requests. In this configuration it will allow you to do larger SELECT statements while still being able to do INSERT's.

Possibly this is the same reason for this system?

于 2010-08-17T12:25:39.863 に答える