# psuedo-code foreach $sample foreach $dim determine attribute for sample for dim store (sample_id, dim_id, att_id) in database } }