I'm working with MVM v 4.xx and want to generate indexes dynamically.
I'm being lazy and rather than solving this myself, I'm throwing it out there for the rest of
you to comment on.
Something like this works fine,
<mvmakeindex name="dbAlias" indexfile="{g.strDataRoot $ 'Xindex1.mvx'}"
expression="{dbAlias.d.field}">
or this
<mvmakeindex name="{dbFields.d.alias}" indexfile="{g.strDataRoot $ 'Xindex1.mvx'}"
expression="{dbAlias.d.field}">
but what about this?
<mvmakeindex name="{dbFields.d.alias}" indexfile="{g.strDataRoot $ 'Xindex1.mvx'}"
expression="{miva_variable_value(dbFields.d.alias $ '.d.' $ dbFields.d.name)}">
My gut feeling is that this would not work, because I would always need to have the
database dbFields open when I want to read or write using the index. At this stage I'm
not sure whether I would always want to do this.
Also, what sort of overhead in processing time is using miva_variable_value() in an
index likely to have if any?
--
Christopher Cookson
Create IT, 4 Safe St, Blenheim
ph +64 3 578 1721 mobile +64 274 969 735
<A HREF ="http://www.createit.co.nz">http://www.createit.co.nz</A>
Comment