<div>Hello,</div>
<div> </div>
<div>On second though we could keep the current structure and expose all fields also through AssetBase properties. Then we could save / load the AssetBase with nhibernate as a single object and leave out the Metadata  property from NHibernate mapping. Does this sound good?</div>

<div> </div>
<div>regards,</div>
<div>Tommi<br><br></div>
<div class="gmail_quote">On Sat, Feb 14, 2009 at 5:06 PM, Mike Mazur <span dir="ltr"><<a href="mailto:mmazur@gmail.com">mmazur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>On Sat, Feb 14, 2009 at 4:05 PM, Tommi Laukkanen<br>
<div class="Ih2E3d"><<a href="mailto:tommi.s.e.laukkanen@gmail.com">tommi.s.e.laukkanen@gmail.com</a>> wrote:<br></div>
<div class="Ih2E3d">> I was talking with mikkopa and he suggested we should create two tables to<br>> cover AssetBase to solve this issue properly. Namely AssetMetadata for<br>> metadata information and AssetData for blobs to avoid situation where we end<br>
> up accessing also the blob data just to read metadata.<br><br></div>I was hoping not to have to do that.<br><br>It should be straightforward to support the current<br>AssetBase/AssetMetadata composition in the existing OpenSim data<br>
layers, but as sdague warned me earlier, by mapping multiple classes<br>to one table I was entering a world of pain. Seems that's exactly<br>what's happening with NHibernate.<br><br>The reason I introduced the AssetMetadata class is to supply metadata<br>
information only for some requests that Cable Beach, the new asset<br>server, supports. Now I realize that this was probably a premature<br>optimization.<br><br>Instead of modifying the DB schema, we could have AssetBase inherit<br>
from AssetMetadata, as I outlined before[1]. Alternatively, we could<br>get rid of AssetMetadata altogether and store everything in AssetBase<br>as before, splitting out the metadata sometime in the future when a<br>use case warrants it.<br>
<br>What do you think?<br><br>Thanks,<br>Mike<br><br><br>[1] <a href="https://lists.berlios.de/pipermail/opensim-dev/2009-February/004918.html" target="_blank">https://lists.berlios.de/pipermail/opensim-dev/2009-February/004918.html</a><br>
</blockquote></div><br>