<!--CTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dt--> <!-- /* Font Definitions */ @font-face       {font-family:Calibri;   panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal        {margin:0in;    margin-bottom:.0001pt;  font-size:11.0pt;       font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink      {mso-style-priority:99;         color:blue;     text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed        {mso-style-priority:99;         color:purple;   text-decoration:underline;} span.EmailStyle17   {mso-style-type:personal-compose;       font-family:"Calibri","sans-serif";         color:windowtext;} .MsoChpDefault       {mso-style-type:export-only;    font-family:"Calibri","sans-serif";} @page WordSection1     {size:8.5in 11.0in;     margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1       {page:WordSection1;} -->
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p>My erlang application makes thousands of entries into an Mnesia table. I would like the same records to be also inserted into an equivalent table in a DB2 database without blocking the call that inserts into Mnesia. Is there a hook that  Mnesia provides where all insertions can be trapped and where I can put my code that inserts the same record into DB2?</p>
<p>Thanks,</p>
<p>Yash</p>
<p> </p>
</div>