2013/10/16 Oleg Broytman <p...@phdru.name>
> > It does what I need, but it doesn't seem like it's what SQLObject
> > developers intended. Do you have any recommendations?
>
>    I don't. Do you want to propose an API? Or better a patch?

Hey, thanks for the reply. I'm looking at the code right now, I need
to look more carefully at the current structure before I can suggest
an API or a patch. In general, I can see 4 possibilities:

- when creating a connection, add an option to not cache that connection
- add an option to clear / expire all the connections in the current cache
- add an option to the close() method so it causes the connection (and
the URI) to expire from the cache
- there already is special handling for in-memory databases, so
maybe add a little more special handling for them; for example free
the memory on close(). This could potentially break existing
applications, does SQLObject make any guarantees about in-memory
databases?

Maciej

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to