Another option is to design a “Result Element Pair” (IRP) in a multi-column MCT design, especially if you will add more columns from time to time.
MCT_TABLE
KEY_col(s)
Col1
Col2
Col3
...
IRP_TABLE
KEY_col(s)
ITEM
VALUE
select * from IRP_TABLE;
KEY_COL ITEM VALUE
1 NAME Joe
1 AGE 44
1 WGT 202
...
IRP is a little more difficult to use, but much more flexible.
I built very large systems using the IRP design, and it can work well even for massive data. In fact, this behaves like a block of an organized database, because you only pull in the necessary rows (i.e., less input / output), and an entire wide line when you need only a few columns (i.e., more input / output).
source
share