[ZODB-Dev] [ zodb-Bugs-653330 ] _sane() is unnecessary
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 13 Dec 2002 08:38:49 -0800
Bugs item #653330, was opened at 2002-12-13 16:38
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=653330&group_id=15628
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Hylton (jhylton)
Assigned to: Nobody/Anonymous (nobody)
Summary: _sane() is unnecessary
Initial Comment:
Every time a FileStorage is opened the _sane() method
is called to look for the last old-style-undo
transaction. In many storages, there will be no such
transaction, and _sane() will read the entire storage
backwards. This is expensive and unnecessary.
It may be possible for read_index() to keep track of
the last 'u' transaction it sees to avoid the backwards
search.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=653330&group_id=15628