I am now attempting to make better use of Metakit's capabilities and in
doing so realized that I have really confused myself.

At one point I take a set of views and union them.  But each view is from a
different storage!  Apparently Metakit doesn't care about this, and that
makes sense.  But to which storage does the derived view belong?  Well, I
suppose it belongs to whichever one you use to do the final view operation.
Fine.

But suppose that I want to do such a complex operation on views drawn from
multiple storages and then put that result into yet another storage.  What
is the best way to do this?  I can create the new storage and the new view
by using getas().  But how do I populate that new view with the result of
my operations.  That is, how do I "copy" my result into a view associated
with the new storage?  View.copy() won't work since it's view-relative.  In
general, how does one copy a view from one storage to another?

I can see only two alternatives here:

1. Create the new storage and (empty) view first, and then its methods to
create the derived view.
2. Do a row by row copy of the derived view to the new storage and view
after you create them.

The second alternative is not good in terms of performance.  The first is
at least a bit cumbersome since it requires that you do this for each such
derived view, even though at some later point you might decide not to store
the derived view.  So you would then have to delete the storage you
initially created.

Is there an alternative that I am missing?  If not, I'll go with 1.

--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456




_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to