ZODB-Documentation icon indicating copy to clipboard operation
ZODB-Documentation copied to clipboard

I have a major problem with the way the book approaches persistence

Open jimfulton opened this issue 8 years ago • 1 comments

There are really 2 major issues:

  • Abuse of the root object.

    The root object should be small. Application collections should be descendents of the root object. For example, in the drawing application, there should be a drawings BTree that stores drawings. It could be a child of the root object (e.g. root.drawings). Similarly, in the TimeTrax application, the projects collection should be a child of the root.

  • The "First ZODB Application" instructs people to store non-persistent objects in the root object. It's not helpful to tell people to use ZODB incorrectly. Many people will form their impressions of ZODB based on the first example, and may not read further. The first example should suggest bad practices that people will have to unlearn later.

(I thought I'd conveyed this in the past, but I cant find anything in my sent folder, so here it is. :) )

jimfulton avatar Aug 22 '16 17:08 jimfulton

Thanks for the comments. Haven't worked on this for a while, partly due to perceived lack of interest. I would be willing to fix these issues if you truly believe this work could be useful and you are able to give it some direction.

cguardia avatar Aug 22 '16 17:08 cguardia