Hi Dan,<br><br><div class="gmail_quote">2008/11/17 <span dir="ltr"><<a href="mailto:Dana.RUBINO@rbs.com">Dana.RUBINO@rbs.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><span><font face="Arial" size="2">Hi,</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">I am getting to the
point where I need to automate the release of all the components in my
app.</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Obviously the Mnesia
schema will only need to be executed the first time the app is launched and not
every time the app is started there after.</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">What is the standard
practice for releasing an Mnesia schema and seeding the DB as a one of at
initial release?</font></span></div>
<div><span><font face="Arial" size="2"></font></span> <br></div></div></blockquote></div><br>"It depends" is the answer. I'm not sure of standard practice, but we basically include it as part of the installation procedure for a service. If it is part of a network of mnesia nodes, you could create one by hand, and then make other nodes join the schema as they come up. I'm personally not comfortable with a node creating a schema automatically when it can't find one, because there can be all sorts of operational reasons for a schema not existing. If you are talking about long lived nodes, it is a good idea to create the schema manually, before you run the node at full steam.<br>
<br>You'll need the following functions to make a new node join an existing schema.<br><br>mnesia:add_table_copy/3<br>mnesia:change_table_copy_type/3<br>mnesia:change_config/2<br><br>The User Guide for mnesia details the procedure.<br>
<br>cheers<br>Chandru<br><br>