2008/7/29 James Henstridge <[EMAIL PROTECTED]>:
> If you are creating a ZStorm instance for every request, then you
> could remove all the threading.local() usage.

Well, I was thinking about removing the thread.local stuff because of the SOP.
Because that also does thread.local.

> If you are two independent apps colocated in the same process, you
> have two options:
>
> 1. if they are connecting to the same database, then let them share
> the same store by passing the same store name to get()
>
> 2. if they are connecting to different databases or the same database
> with different settings, use different stores with different names.
>
> In both cases, the database URIs can be configured once at startup
> with global_zstorm.set_default_uri().

True, ok.

So I guess I can drop the SOP alltogether and import global_zstorm in
every module that needs it, which makes the StormMiddleware
unnecessary.

;)

 -Olaf

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to