Contents
The goal of this study is well described at : https://dev.lsstcorp.org/trac/wiki/db/tests/MySql/WideTables.
Tables are filled with integer random values, and double and float random values between [0.1]. Each case contains arrays of 5500 columns. A value can be stored in a standard MySQL column, or clustered with other value in a MySQL blob column.
Retrieve first value of the array for a given id:
SELECT Table_0.Field_0 FROM Table_0 WHERE id=500;
Retrieve first value of each MySQL table composing the full array for a given id:
SELECT Table_0.Field_0, Table_1.Field_1 FROM Table_0, Table_1 WHERE id=500 AND Table_0.id=Table_1.id;
Retrieve first value of each MySQL table composing the full array with a search predicate on the first column containing double values:
SELECT Table_0.Field_0, Table_1.Field_1 FROM Table_0, Table_1 WHERE Table_0.Double_0=0.99 AND Table_0.id=Table_1.id;
MySQL query cache is removed after each case.
The legend for C case still need to be corrected w.r.t. this :
- Subcase 01 : 500 columns by table
- Subcase 02 : one table of 500 columns, and 100 columns by table
- Subcase 03 : one table of 500 columns, and 1000 columns by table