[Zope3-checkins] CVS: Zope3/src/zope/app/startup - sitedefinition.py:1.16

Jim Fulton jim@zope.com
Tue, 20 May 2003 16:24:31 -0400


Update of /cvs-repository/Zope3/src/zope/app/startup
In directory cvs.zope.org:/tmp/cvs-serv30271/src/zope/app/startup

Modified Files:
	sitedefinition.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/startup/sitedefinition.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/startup/sitedefinition.py:1.15	Thu May  1 15:35:36 2003
+++ Zope3/src/zope/app/startup/sitedefinition.py	Tue May 20 16:24:30 2003
@@ -97,7 +97,7 @@
         from zodb.storage.file import FileStorage
         if self._zodb is not None:
             raise RuntimeError("Database already open")
-        self._zodb = DB(FileStorage(file))
+        self._zodb = DB(FileStorage(file), cache_size=4000)
         return []
 
     def useMappingStorage(self, _context):
@@ -113,7 +113,7 @@
         from zodb.config import convertBDBStorageArgs
         from zodb.storage.bdbfull import BDBFullStorage
         kws = convertBDBStorageArgs(**kws)
-        self._zodb = DB(BDBFullStorage(**kws))
+        self._zodb = DB(BDBFullStorage(**kws), cache_size=4000)
         return []
 
     def useMemoryFullStorage(self, _context, **kws):