[Zope3-checkins] CVS: Zope3/src/zope/app - _app.py:1.10
Jim Fulton
jim@zope.com
Tue, 20 May 2003 16:25:00 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv30271/src/zope/app
Modified Files:
_app.py
Log Message:
Changed the database cache size from 400 to 4000. Without this,
almost all of the objects disappeared from the cache after large
requests.
=== Zope3/src/zope/app/_app.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/_app.py:1.9 Fri May 2 14:00:10 2003
+++ Zope3/src/zope/app/_app.py Tue May 20 16:24:30 2003
@@ -60,12 +60,12 @@
else:
storage = globals['Storage']
from zodb.db import DB
- db = DB(storage)
+ db = DB(storage, cache_size=4000)
elif db.endswith(".fs"):
from zodb.storage.file import FileStorage
from zodb.db import DB
storage = FileStorage(db)
- db = DB(storage)
+ db = DB(storage, cache_size=4000)
# XXX When bootstrapping a new database, the following will fail
# while trying to add services when no config_file was passed