<br><br><div><span class="gmail_quote">On 12/10/07, <b class="gmail_sendername">Mathieu Bouchard</b> &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
But it requires multiple logins, perhaps many at once, which might be<br>wasteful. For sharing database connections between several [psql]<br>objects, what do you think would be the best ways to do it? This is<br>supposing that several different database connections can still be
<br>used at once, as specified in the patches.</blockquote><div><br class="webkit-block-placeholder"></div><div>In one of the early prototypes I wrote for this, I set it up so that the connections were shared. Basically, when an object tried to open a connection, it would check if there was already one open, and if so, it would use that. Else it would create a new connection, which would then get stored in the global connection object.
</div><div><br class="webkit-block-placeholder"></div><div>One thing that I would be curious about would be any collisions in using a shared object, but I also think that should be something left to think about in building the PD patch.
</div><div><br>&nbsp;</div><div>Mike</div><div><br class="webkit-block-placeholder"></div><br><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">&nbsp;&nbsp;_ _ __ ___ _____ ________ _____________ _____________________ ...
<br>| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada</blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.
<br>—Yehudi Menuhin (1916–1999), musician