[storm] Storm and DBUtils

Christopher Armstrong radix at twistedmatrix.com
Sat Mar 1 17:35:00 GMT 2008


On Sat, Mar 1, 2008 at 12:33 PM, Christopher Armstrong
<radix at twistedmatrix.com> wrote:
> On Sat, Mar 1, 2008 at 12:30 PM, Sean Allen <sean at ardishealth.com> wrote:
>  >  What I'm interested in is not closing out the connections period.
>  >  If I read the DBUtils code correctly ( and maybe i dont because i put
>  >  more than 30, less than 60 minutes
>  >  in on this ), database connection have to be explicitly closed via
>  >  Persistent db,
>  >  standard close calls etc wouldnt close the connection whereas
>  >  storm does close the connections which then have to be reopened.
>
>  No, Storm does not close the connections if you use it in the normal
>  way: have one Store per thread, and keep that Store around for the
>  lifetime of the thread.

... Assuming you have a thread pooling system. Most threaded web
application servers these days do, so it should be fine.

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/



More information about the storm mailing list