ACL:AllegroCache philosophical question
- From: jcb <nomail@xxxxxxxxxx>
- Date: Sat, 29 Sep 2007 18:07:24 -0700
Hi all I'm reading the AllegroCache docs, in particular the paper titled "AllegroCache with Web Servers v1.0" (URL: www.franz.com/products/allegrocache (scroll to AllegroCache Documentation section))..
I need to do an (in)sanity check on database connections as they are explained in the paper.
The example code creates an ac-map object, and it saves the database connection (*allegrocache*) used to create the map in a global variable. Great pains are then taken to restore a local binding of *allegrocache* to the global variable whenever the map is accessed.
The paper contains this puzzling (to me) statement:
<quote>
*password-map* has an ac-map object as it's value. This value can only be examined when *allegrocache* is bound to the database connection from which the ac-map object was obtained.
</quote>
Surely I am misunderstanding the intent here. The above statement implies that if I anticipate multiple database connections, I must forever associate the connection with the set of database operations performed on that connection. The example deals with only one object - an ac-map. What if I connect to the database, create 1000 objects and then do a commit. According to the above statement, I can only examine those objects using the connection on which they were created.
I don't get it.
Can someone with a bigger brain than me please elucidate.
thanks.
John
.
- Follow-Ups:
- Re: ACL:AllegroCache philosophical question
- From: Ken Tilton
- Re: ACL:AllegroCache philosophical question
- Prev by Date: Re: (not about) Re: How To Learn Lisp
- Next by Date: Confused by behavior of LispWorks for code snippet
- Previous by thread: Re: [OT] Free Software Strikes Again?
- Next by thread: Re: ACL:AllegroCache philosophical question
- Index(es):
Relevant Pages
|