ACL:AllegroCache philosophical question



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





.



Relevant Pages

  • Re: ACL:AllegroCache philosophical question
    ... titled "AllegroCache with Web Servers v1.0" ).. ... The example code creates an ac-map object, and it saves the database connection used to create the map in a global variable. ... that is the way specials are used. ... 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. ...
    (comp.lang.lisp)
  • Re: ACL:AllegroCache philosophical question
    ... "AllegroCache with Web Servers v1.0" ).. ... The example code creates an ac-map object, and it saves the database connection used to create the map in a global variable. ... that is the way specials are used. ... 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. ...
    (comp.lang.lisp)