i was searching for a module that could be used to implement lookup of a
string value based on two other strings.
matrix module would otherwise be ok, but i would need to have at least
two matrixes. so a matrix_name column would need to be added to matrix
table and matrix name argument to matrix function. also, i'm worried
about the linked list implementation and would prefer a hash table based
one: first look for the first index from a hash table, which would then
point to the hash table of the second index.
use of dialplan module is another alternative. it would require giving
a numerical index to each first string value, which could then be used
as dpid. second string values would then be stored in match_exp column
in rows of that that dpid and the value would in attrs column.
third alternative is htable module, i.e., use
table_name::first_string::second_string as keyname and put string value
in key_value column. in fact, that sounds like the best fit for the
problem.
i would be interested to learn, why matrix module was developed in the
first place. why is is better suited for the job than htable module?
and if there are good reasons, why matrix module is better for its
intended job than htable module, is there interest in developing matrix
module further along the lines i described in above?
-- juha