开发者

Beaker caching performance guideline

开发者 https://www.devze.com 2023-02-20 22:06 出处:网络
I was implemented beaker with a cherrypy application, but after some requests, the beak开发者_开发百科er response time increases about 10-14 seconds.

I was implemented beaker with a cherrypy application, but after some requests, the beak开发者_开发百科er response time increases about 10-14 seconds.

i think after including 500 to 1000 items in cache, beaker goes down.

all cached types are simple(str,int,list,tuple,...)


I Found the problem, The beaker have some performance problems with file type back-end. simply i changed the

'cache.type' : 'file'

to:

'cache.type' : 'dbm'

and everything is so good!!!

when type is file beaker uses python pure pickle library to serialize the object. and pickle does not good for large objects.

0

精彩评论

暂无评论...
验证码 换一张
取 消