Hi,
ich have a big table with many columns that are updated quite often.
q)table:([id:1 2 3] quote:4 5 6; field1: 1 2 3);
many upserts per second update the quote field.
tableview is a table alias that extends the table by some columns that are feeded by other columns:
q)tableview::update dynamicField:quote-field1 from table
my applications now selects from this tableview, for example:
q)select from tableview where dynamicField>100
In realtity i have much more rows and much more columns that have more complicated calculations (in the view).
my question: is it wise to build the DB like this? Performance?
how does kdb+ handle the table view/alias, does it calculate the dynamicFields on every update (when the quote field is updated)
or is it calculated on demand when the select is issued?
when I select dynamicField > 100, are the other dynamicFields (i have more dynamic columns in the view) ignored or is there calculation overhead?
does the table view produce much memory overhead?
thanks! Markus