Search code examples
pythonzopezodbgrok

Can I query Grok's ZODB instance outside the web application scope?


I have a grok-based webapp that persists data using ZODB. Can I query the object db offline i.e. from a python script that would be run on the webserver hosting the grok/paste webapp instance?

And would there be any issues in doing so while the web server is interacting with the database simultaneously?


Solution

  • You can open the ZODB with python and inspect the data, yes. To do so while you also run the web site, you'll need to use a concurrency layer like ZEO or RelStorage; plain FileStorage does not support concurrent access otherwise.