Questions tagged [zodb]

ZODB is an object database for Python. Originally part of the ZOPE web application framework project, it can be used stand-alone, and provides an easier persistance alternative to relational databases for object oriented python software.

The Zope Object Database (ZODB) is an object-oriented database for transparently and persistently storing Python objects. It is included as part of the Zope web application server, but can also be used independently of Zope. ZODB provides an easier persistence alternative to relational databases, for object oriented python software.

The ZODB is fully ACID compliant, stores BLOBs efficiently, supports pluggable storages and employs a scalable architecture.

See zodb.org for more information.

193 questions
44
votes
5 answers

ZODB In Real Life

Writing an app in Python, and been playing with various ORM setups and straight SQL. All of which are ugly as sin. I have been looking at ZODB as an object store, and it looks a promising alternative... would you recommend it? What are your…
Aiden Bell
  • 28,212
  • 4
  • 75
  • 119
17
votes
7 answers

What is the suggested way to cron-automate ZODB packs for a production Plone instance?

Looking at plone.org to find a way to periodically pack my instance's ZODB I could only find http://plone.org/documentation/faq/how-do-i-pack-the-zodb that doesn't talk about automated packs, but just manually initiated ones. I know I can simulate…
silviot
  • 4,615
  • 5
  • 38
  • 51
11
votes
2 answers

when to commit data in ZODB

I am trying to handel the data generated by the following piece of code: for Gnodes in G.nodes() # Gnodes iterates over 10000 values Gvalue = someoperation(Gnodes) for Hnodes in H.nodes() # Hnodes iterates over 10000 values …
R.Bahl
  • 399
  • 6
  • 18
8
votes
4 answers

What is the correct way to backup ZODB blobs?

I am using plone.app.blob to store large ZODB objects in a blobstorage directory. This reduces size pressure on Data.fs but I have not been able to find any advice on backing up this data. I am already backing up Data.fs by pointing a network backup…
joeforker
  • 40,459
  • 37
  • 151
  • 246
8
votes
6 answers

Understanding Zope internals, from Django eyes

I am a newbie to zope and I previously worked on Django for about 2.5 years. So when I first jumped into Zope(v2) (only because my new company is using it since 7 years), I faced these questions. Please help me in understanding them. What is the…
Nanda Kishore
  • 2,789
  • 5
  • 38
  • 61
7
votes
2 answers

Is it necessary to keep data.fs.old after packing?

My data.fs was 500 MB, so I packed it then backed it up, resulting in 100 MB. My hosting account is only 500 MB, so I am wondering if it is safe to delete data.fs.old (500 MB)?
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
7
votes
2 answers

How to get rid of ConflictError on ZEO workers?

Looking at my ZEO workers I get to see quite a lot of: 2013-10-18T11:59:54 INFO ZPublisher.Conflict ConflictError at /VirtualHostBase/http/www.domain.com:80/Plone/VirtualHostRoot/: database conflict error (oid 0x533cd5,…
gforcada
  • 2,498
  • 17
  • 26
6
votes
0 answers

Pyramid + transactionmanager: rm.abort() TPC is progress

I am running Pyramid using pyramid_tm and pyramid_mailer. I am catching the following traceback by a Sentry logging service: Stacktrace (most recent call last): File "transaction/_transaction.py", line 374, in _callAfterCommitHooks …
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
6
votes
2 answers

Any good guides and/or advice for indexing my objects in zodb?

I'm going to be writing a general object class for use with zodb. These objects will add themselves to a btree index once they are persisted to the zodb object graph. I've never really worked with any of this before, but would anyone have any…
Alexander Trauzzi
  • 7,277
  • 13
  • 68
  • 112
6
votes
3 answers

pickle/zodb: how to handle moving .py files with class definitions?

I'm using ZODB which, as I understand it, uses pickle to store class instances. I'm doing a bit of refactoring where I want to split my models.py file into several files. However, if I do this, I don't think pickle will be able to find the class…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
5
votes
1 answer

Renaming my.packages to my.package

my.packages is a custom archetypes package in the src directory. Thousands of items in the Plone instance are added with its types. I want to rename the package as my.package. By simply uninstalling my.packages and installing my.package, I find…
marr
  • 861
  • 4
  • 19
5
votes
2 answers

Method for indexing an object database

I'm using an object database (ZODB) in order to store complex relationships between many objects but am running into performance issues. As a result I started to construct indexes in order to speed up object retrieval and insertion. Here is my…
Evrim
  • 55
  • 2
5
votes
3 answers

More interactive ZODB packing

Current ZMI management "Pack database" functionality is little rough. 1) Could it be possible to have some kind of progress indicator for web UI? E.g. one telling how many minutes/hours are left giving at least some kind of estimate 2) How does ZODB…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
5
votes
3 answers

zc.lockfile.LockError in ZODB

I am trying to use ZODB 3.10.2 on my web server which is running Debian and Python 2.7.1. It seems like every time I try to access the same database from 2 different processes, I get a mysterious exception. I tried accessing a database from an…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
5
votes
2 answers

What is the difference between the various ZODB blobstorage layouts?

The ZODB blobstorage directory contains a .layout file with the string 'lawn', 'bushy'. What is the difference between the various blob storage directory formats?
joeforker
  • 40,459
  • 37
  • 151
  • 246
1
2 3
12 13