[storm] Dynamically changing OR mapping question with aliases

akira nhytro-python at web.de
Mon Aug 13 15:50:22 BST 2007


Ok, one thing still goes unanswered, if I cant set the search path 
dynamically in a Pylons controller, it is then not a solution. I would 
not also want to be making calls to Psycopg to change the search_path, I 
would then be making my code PostgreSQL.

Thanks

Gustavo Niemeyer wrote:
>> You can just act as if Storm wasn't being used in this case.  Storm will
>> select things from specified tables normally.  If you have search paths,
>> they'll be used.
>>     
>
> Actually, there's an issue here.  Make sure you run 'store.invalidate()'
> whenever you update the search path, otherwise you may get cached objects
> which don't correspond to the table you want.
>
>   




More information about the storm mailing list