<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Dec 10, 2007, at 3:30 PM, Mike McGonagle wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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></blockquote><br></div><div>It is useful to represent the pieces in Pd space, so you can understand what's going on.  That's one reason why I advocate having the core object represent the connection to the database rather than a query.  Otherwise, it's starts to become more like Max/MSP's mega-objects (coll, zl, etc) that are really like mini-applications than programming.  </div><div><br class="webkit-block-placeholder"></div><div>There still can be query objects, they would just be designed to feed to the core database objects.  These query objects would then be usable if we maintain the same interface.</div><div><br class="webkit-block-placeholder"></div><div>.hc</div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br class="khtml-block-placeholder"></div><div>News is what people want to keep hidden and everything else is publicity.          - Bill Moyers</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>