采用这一数据库设计的I m需要将一些可变的长度阵列储存到我的仪表数据库。
这些阵列的长度将(最多)在数以百计(如果不是数千)。
新阵列将定期建立,可能每天10个。
- should I store these arrays into one table that will soon grow gigantic or
- create a new table for each array and soon have a huge number or tables?
- something else? (like formatted text column for the array values)
澄清 1. 大致情况
CREATE TABLE array (id INT, valuetype VARCHAR(64), ...)
CREATE TABLE arr_values (id INT, val DOUBLE, FK array_id)
页: 1
CREATE TABLE array (id INT, valuetype VARCHAR(64),...)
CREATE TABLE arr_values (id int, val DOUBLE, FK array_id) -- template table
CREATE TABLE arr1_values LIKE arr_values ...
The arr_values will be used as arrays that is queried by joining to a complete array. Any ideas on why some approach is better than other?