0

MySql パフォーマンスのベンチマーク数値を見つけるのに苦労しています..

そこには数字のあるサイトがたくさんありますが、それらは非常に多様であり、それが私が求めているものかどうかはわかりません..

私の質問は:

次の構造を持つ単一のテーブルがあります。

          email .. 64 bytes max
          firstname .. 24 bytes max
          lastname .. 24 bytes max
          gender .. 1 byte max
          age .. 3 bytes max
          password .. 32 bytes max

完全に空のテーブルを想定しています。これらのエントリを 100,000 個生成し (ランダムに生成された値を使用するだけ)、それらをデータベースに挿入するには、どれくらいの時間がかかりますか..

MySql はそれらを挿入し、バックグラウンドで、または必要なときに遅延して並べ替えますか?

100,000 エントリすべてがテーブルに追加され、すべての列が完了するとすぐに完全にソート可能であると仮定しています.. (この点は重要です。完全にソートされたテーブルを使用した推定値が必要です)

4

1 に答える 1

0

The part of your question that is addressable is:

Does MySql insert them, and sort them lazily in the background or when needed ?

Take a look at this page from the MySQL documentation, 14.2.9. MySQL and the ACID Model. Any database server that implements the ACID model basically "promises" that when you write data to it, by the time control returns to your code that write will either have succeeded or failed.

To the best of my knowledge, indexes will be updated at the point at which the record is inserted into the database.

于 2012-12-01T10:41:07.530 に答える