Python论坛  - 讨论区

标题:[python-chinese] python-chinese 摘要, 卷 48, 发布 87

2007年12月10日 星期一 21:19

乱乱 luan.nombx在gmail.com
星期一 十二月 10 21:19:29 HKT 2007

那有人比较一下django和Quixote ?
      想听听大家的高见......

在 07-12-10,python-chinese-request在lists.python.cn<python-chinese-request在lists.python.cn>
写道:
> 想在 python-chinese 邮件列表发言,请写信给:
> 	python-chinese在lists.python.cn
>
> 要订阅或者退订列表,可以访问万维网地址:
> 	http://python.cn/mailman/listinfo/python-chinese
> 或者可以向:
> 	python-chinese-request在lists.python.cn
> 发送主题或者正文为'help'的邮件。
>
> 您可以通过邮件地址:
> 	python-chinese-owner在lists.python.cn
> 联系到此列表的管理员。
>
> 当回信时,请给一个适当的标题,这样会比 "Re:
> Contents of python-chinese digest..."更清楚明白。
>
>
> 本日主题:
>
>    1. Re: Django很可能存在性能问题 (limodou)
>    2. Re: [CPyUG:36470] Re: [分享]BPUG
>       2007-12-08会课资料分享 (Zoom.Quiet)
>    3. Re: [CPyUG:36472] Re: [分享]BPUG
>       2007-12-08会课资料分享 ( 清风 )
>    4. Re: Django很可能存在性能问题 (vicalloy)
>    5. Re: 求能运行在windows上的python web server (jeff jie)
>    6. Re: Django很可能存在性能问题 (Romit)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 10 Dec 2007 17:55:00 +0800
> From: limodou <limodou在gmail.com>
> Subject: Re: [python-chinese] Django很可能存在性能问题
> To: python-chinese在lists.python.cn
> Message-ID:
> 	<505f13c0712100155h6cfb6dcenda50a68a1688a478在mail.gmail.com>
> Content-Type: text/plain; charset=GB2312
>
> 2007/12/10 丁亮 <bluker2599在gmail.com>:
> > 希望进一步和谐讨论。
>
> 同意,建议就事论事,没必要进行人员个人情况的调查。
>
> --
> I like python!
> UliPad <>: http://code.google.com/p/ulipad/
> meide <>: http://code.google.com/p/meide/
> My Blog: http://www.donews.net/limodou
>
> ------------------------------
>
> Message: 2
> Date: Mon, 10 Dec 2007 17:57:08 +0800
> From: Zoom.Quiet <zoom.quiet在gmail.com>
> Subject: Re: [python-chinese] [CPyUG:36470] Re: [分享]BPUG
> 	2007-12-08会课资料分享
> To: python-cn在googlegroups.com
> Cc: python-chinese列表 	<python-chinese在lists.python.cn>,
> 	cpug-eastchina在googlegroups.com, szlug在googlegroups.com,
> 	zpug在googlegroups.com
> Message-ID:
> 	<9dad9f0a0712100157t30950e29j79021f08b672aaf4在mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Dec 10, 2007 5:54 PM, 清风 <paradise.qingfeng在gmail.com> wrote:
> > 这个是录音ppt都有,wiki页也已加入
> 晕!是 SINA 的视频服务,
> 在 Ubuntu 下面根本无法看哪!!
> 可以提供个独立的下载版本?
>
> >
> > On Dec 10, 2007 5:48 PM, Zoom. Quiet <zoom.quiet在gmail.com> wrote:
> > > On Dec 10, 2007 5:46 PM, 清风 <paradise.qingfeng在gmail.com> wrote:
> > > > 1.精巧的持续集成[讲解人,阿风]
> > > > http://blog.opensource.org.cn/hdcola/2007/12/post-13.html
> > > >
> > > > 2.GSLB using xBayDNS[讲解人,HD]
> > > > http://blog.opensource.org.cn/hdcola/2007/12/gslb-using-xbaydns.html
> > > >
> > > > 拍照的同学,尽快分享照片阿:)
> > > 录音?!
> > > 维基下载!
> > >
> > > >
> > > > --
> > > > http://qingfeng.ushared.com/blog/
> > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > '''Time is unimportant, only life important!
> > > 过程改进乃是开始催生可促生靠谱的人的组织!
> > > '''http://zoomquiet.org
> > > 博 @ http://blog.zoomquiet.org/pyblosxom/
> > > 维 @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > > 豆 @ http://www.douban.com/people/zoomq/
> > > 看 @ http://zoomq.haokanbu.com/
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> > > Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> > > You can get the truely Freedom 4 software.
> > >
> > > >
> > >
> >
> >
> >
> > --
> >
> > http://qingfeng.ushared.com/blog/
> >
> > --~--~---------~--~----~------------~-------~--~----~
> > '''邮件来自Groups "python-cn"--China Py User Group
> > 详情: http://groups-beta.google.com/group/python-cn
> > 发言: python-cn在googlegroups.com
> > 退订: python-cn-unsubscribe在googlegroups.com
> > 维基: http://wiki.woodpecker.org.cn/moin/CPUG
> > 珠江事务: http://groups.google.com/group/zpug
> > 东南事务: http://groups.google.com/group/cpug-eastchina
> > 北京事务: http://groups.google.com/group/bpug
> > 中国事务: http://groups.google.com/group/CPUG
> > 同质列表: http://python.cn/mailman/listinfo/python-chinese
> > '''
> > -~----------~----~----~----~------~----~------~--~---
> >
> >
>
>
>
> --
> '''Time is unimportant, only life important!
> 过程改进乃是开始催生可促生靠谱的人的组织!
> '''http://zoomquiet.org
> 博 @ http://blog.zoomquiet.org/pyblosxom/
> 维 @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> 豆 @ http://www.douban.com/people/zoomq/
> 看 @ http://zoomq.haokanbu.com/
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> You can get the truely Freedom 4 software.
>
> ------------------------------
>
> Message: 3
> Date: Mon, 10 Dec 2007 18:14:19 +0800
> From: " 清风 " <paradise.qingfeng在gmail.com>
> Subject: Re: [python-chinese] [CPyUG:36472] Re: [分享]BPUG
> 	2007-12-08会课资料分享
> To: python-cn在googlegroups.com
> Cc: python-chinese列表 <python-chinese在lists.python.cn>
> Message-ID:
> 	<3ef598910712100214r21950ba5gd8953dd50b28d9c在mail.gmail.com>
> Content-Type: text/plain; charset=GB2312
>
> 不会吧?sina的视频服务应该支持firefox的?我在mac下看也很正常阿:)
>
> On Dec 10, 2007 5:57 PM, Zoom. Quiet <zoom.quiet在gmail.com> wrote:
> > On Dec 10, 2007 5:54 PM, 清风 <paradise.qingfeng在gmail.com> wrote:
> > > 这个是录音ppt都有,wiki页也已加入
> > 晕!是 SINA 的视频服务,
> > 在 Ubuntu 下面根本无法看哪!!
> > 可以提供个独立的下载版本?
> >
> >
> > >
> > > On Dec 10, 2007 5:48 PM, Zoom. Quiet <zoom.quiet在gmail.com> wrote:
> > > > On Dec 10, 2007 5:46 PM, 清风 <paradise.qingfeng在gmail.com> wrote:
> > > > > 1.精巧的持续集成[讲解人,阿风]
> > > > > http://blog.opensource.org.cn/hdcola/2007/12/post-13.html
> > > > >
> > > > > 2.GSLB using xBayDNS[讲解人,HD]
> > > > > http://blog.opensource.org.cn/hdcola/2007/12/gslb-using-xbaydns.html
> > > > >
> > > > > 拍照的同学,尽快分享照片阿:)
> > > > 录音?!
> > > > 维基下载!
> > > >
> > > > >
> > > > > --
> > > > > http://qingfeng.ushared.com/blog/
> > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > '''Time is unimportant, only life important!
> > > > 过程改进乃是开始催生可促生靠谱的人的组织!
> > > > '''http://zoomquiet.org
> > > > 博 @ http://blog.zoomquiet.org/pyblosxom/
> > > > 维 @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > > > 豆 @ http://www.douban.com/people/zoomq/
> > > > 看 @ http://zoomq.haokanbu.com/
> > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > > Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> > > > Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> > > > You can get the truely Freedom 4 software.
> > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > http://qingfeng.ushared.com/blog/
> > >
> > > >
> > >
> >
> >
> >
> > --
> > '''Time is unimportant, only life important!
> > 过程改进乃是开始催生可促生靠谱的人的组织!
> > '''http://zoomquiet.org
> > 博 @ http://blog.zoomquiet.org/pyblosxom/
> > 维 @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > 豆 @ http://www.douban.com/people/zoomq/
> > 看 @ http://zoomq.haokanbu.com/
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> > Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> > You can get the truely Freedom 4 software.
> >
> > --~--~---------~--~----~------------~-------~--~----~
> > '''邮件来自Groups "python-cn"--China Py User Group
> > 详情: http://groups-beta.google.com/group/python-cn
> > 发言: python-cn在googlegroups.com
> > 退订: python-cn-unsubscribe在googlegroups.com
> > 维基: http://wiki.woodpecker.org.cn/moin/CPUG
> > 珠江事务: http://groups.google.com/group/zpug
> > 东南事务: http://groups.google.com/group/cpug-eastchina
> > 北京事务: http://groups.google.com/group/bpug
> > 中国事务: http://groups.google.com/group/CPUG
> > 同质列表: http://python.cn/mailman/listinfo/python-chinese
> > '''
> > -~----------~----~----~----~------~----~------~--~---
> >
> >
>
>
>
> --
> http://qingfeng.ushared.com/blog/
>
> ------------------------------
>
> Message: 4
> Date: Mon, 10 Dec 2007 18:28:09 +0800
> From: vicalloy <zbirder在gmail.com>
> Subject: Re: [python-chinese] Django很可能存在性能问题
> To: python-chinese在lists.python.cn
> Message-ID:
> 	<75e02a110712100228p2adcf88cnb949f2877cdfb2e5在mail.gmail.com>
> Content-Type: text/plain; charset=GB2312
>
> :)没想到到后面的火气这么大。
> 对我而言,主要是对django的O/R Map有点意见(性能方面)。
> django对于常见的应用,开发速度绝对是优秀的。
> django给我的感觉是,优异的开发效率很大程度上是源于他统一的整体构架(当年看中他,这也是很重要的一点)。
> 如果需要替换掉其中的某个部件,那开发效率的优势就不是那么明显了。
> 这时候采用其他的开发框架或许会是一个更好的选择。
>
> 2007/12/10, limodou <limodou在gmail.com>:
> > 2007/12/10 丁亮 <bluker2599在gmail.com>:
> > > 希望进一步和谐讨论。
> >
> > 同意,建议就事论事,没必要进行人员个人情况的调查。
> >
> > --
> > I like python!
> > UliPad <>: http://code.google.com/p/ulipad/
> > meide <>: http://code.google.com/p/meide/
> > My Blog: http://www.donews.net/limodou
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> --
> Blog http://vicalloy.spaces.live.com/
> My googlepage http://vicalloy.googlepages.com/
> OldPhoto http://www.lzpian.com/
>
> ------------------------------
>
> Message: 5
> Date: Mon, 10 Dec 2007 18:38:35 +0800
> From: "jeff jie" <bbmyth在gmail.com>
> Subject: Re: [python-chinese] 求能运行在windows上的python web
> 	server
> To: python-chinese在lists.python.cn
> Message-ID:
> 	<59d0c3510712100238s171eaba7uad5fc06d40f34298在mail.gmail.com>
> Content-Type: text/plain; charset="gb2312"
>
> Apache不可以吗?
> 那就Apache + mod_python或Fcgi吧。
>
> On Dec 10, 2007 5:53 PM, Frank Tian <plumpbird在gmail.com> wrote:
>
> > 以前用tomcat 觉得很好用 后来学python了 想换一个
> > 试了下zope 可是发现好像zope把文件和文件夹都给存储起来了
> > 我想用那种在文件系统里直接能找到对应目录对应文件的那种
> > 请高手指点下
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> --
> site:http://www.fallever.com
> -------------- 涓���ㄥ� --------------
> 一个HTML附件被移除...
> URL:
> http://python.cn/pipermail/python-chinese/attachments/20071210/e5975aae/attachment-0001.htm
>
> ------------------------------
>
> Message: 6
> Date: Mon, 10 Dec 2007 18:38:53 +0800
> From: Romit <m_list在126.com>
> Subject: Re: [python-chinese] Django很可能存在性能问题
> To: python-chinese在lists.python.cn
> Message-ID: <475D173D.6010909在126.com>
> Content-Type: text/plain; charset="gb2312"
>
> Romit
> 我觉得没必要动不动人身攻击,如果你实实在在用django做过一些项目,你在回头
> 看这个框架,你就知道对它的感受了,至于现在谁是SB我觉得不言自明,没有实际
> 的项目经验,谈一个框架的优劣本省就有点可笑吧Nicholas Ding。
> 不是说我多牛,而是我实实在用这个框架做过项目,在实施过程中,项目需求的变
> 动是很正常的,如果一个框架没有一定的适应性,我觉得它就不是一个成功的框架。
> Nicholas Ding 写道:
> > 动不动就是什么企业网站,搞的自己好像多NB一样。把N换成S更适合你。
> >
> > On Dec 10, 2007 1:49 PM, Romit <m_list在126.com
> > m_list在126.com>> wrote:
> >
> >     Romit:
> >
> >     * 模型,你回去更改一下模型就知道了,你再深入一下他的权限系统看看,就
> >     知道什么叫无知者无畏了。
> >     * 模板,你看看现在有多少模板系统,django支持几种。你先自己数一下现在
> >     有多少哦模板系统,然后再看django支持几种。
> >     * 本地化,你再仔细看一下,什么叫本地化,会说几句英语不代表你是英国人。
> >     * 扩展性,再和其它框架比一比吧。
> >
> >     我不知道VCC用django做过企业网站没有,如果没有做一个再回头发表你的
> >     高见。
> >
> >     vcc 写道:
> >     > 我真的受不了,真是无知者无畏啊;-)
> >     >
> >     > >数据库只支持mysql,postgresql,sqlite,也不支持连接池,高并发访
> >     问,光这
> >     > 一块,就把主机搞垮了。
> >     >
> >     > 还支持很多的,ado_mssql, oracle,...。OK,让我们来看看重点-连接池,没
> >     > 错,django确实没有显式支持连接池,居然没有这个标配真是让人扼腕叹
> >     息,不
> >     > 得不怀疑 django的作者真是XXX智商归零啊;-)但是慢着,真的就没有
> >     吗?当然
> >     > 不是,这些数据库的驱动都实现了连接池,本来连接池这种东西就不应该是
> >     > django应该操心的事。不相信?ado_mssql, oracle不用说了,没听说过
> >     用ado还
> >     > 要自己维护连接池的,postgresql_psycopg2本身就为高性能设计,有连接池
> >     > 的。sqlite3 没有,确实没有,但是一个文件型的数据库需要连接池吗?
> >     真的需
> >     > 要吗?再来看看大众的最爱--mysql,OK,这个没有,但是MYSQL自己怎么说来
> >     > 着?他是一个连接一个线程,不建议2个线程分享一个连接,会挂掉的。
> >     另外,
> >     > 多线程性能恰是Python的"死穴",所以提倡多进程,django就是建议用
> >     fastcgi
> >     > 跑多进程,速度还快过多线程的mod_python。呵呵,不要看很多SQLXXX实
> >     现了所
> >     > 谓的连接池,那只是不管白天还是黑夜都戴副墨镜 --装酷罢了;-) 知道
> >     Guido为
> >     > 什么那么喜欢django了吧,理念一致阿,就是别人能做的我就坚决不做,
> >     DRY,呵呵
> >     >
> >     > >不支持本地化,只支持UTF8
> >     >
> >     > 这个显然是乱讲。
> >     >
> >     > 〉 模型不能动态更改
> >     >
> >     > 动态更改模型?我也想知道怎么动态法?我天天都在祈祷用户自己点点网
> >     页就可
> >     > 以把模型改成他们要的东西,还自动生成代码,自动搞数据库,自
> >     动....,我只
> >     > 要坐着收钱就可以了....
> >     >
> >     >
> >     > > Form存在严重的权限污染
> >     >
> >     > 这个我真的不知道,愿闻其详。
> >     >
> >     > 〉 模板只支持一种
> >     >
> >     > 没错,是只支持一种,python写的;-) 不过有好事者似乎把PHP写的也给
> >     支持了
> >     >
> >     > 〉难于扩充
> >     >
> >     > 只见过糟糕的代码难以扩充,没见过写得这么清晰漂亮的代码还扩充不
> >     了?是没
> >     > 搞懂还是羞于下手啊?
> >     >
> >     > 〉django是垃圾产品?
> >     >
> >     > 全球这么多人搞的东西是垃圾?一个人是垃圾是有可能的,但是所有的人
> >     都是垃
> >     > 圾那是不可能的!
> >     >
> >     > vcc
> >     > _
> >     >
> >     >
> >     > ----- Original Message -----
> >     > *From:* Romit m_list在126.com m_list在126.com> >
> >     > *To:* python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     > python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>>
> >     > *Sent:* Sunday, December 09, 2007 2:26 PM
> >     > *Subject:* Re: [python-chinese] Django很可能存在性能问题
> >     >
> >     > Romit 写道:
> >     > 基本天生就是个畸形儿,缺陷如下:
> >     >
> >     > 1. 数据库只支持mysql,postgresql,sqlite,也不支持连接池,高并发
> >     > 访问,光这一块,就把主机搞垮了。
> >     > 2. 不支持本地化,只支持UTF8。
> >     > 3. 模型不能动态更改。
> >     > 4. Form存在严重的权限污染。
> >     > 5. 模板只支持一种。
> >     > 6. 难于扩充。
> >     >
> >     >> John fractal 写道:
> >     >>
> >     >>> 我不认为django一定就是低效率,但对于要多个表格join来join去的数
> >     据库结
> >     >>> 构,django的orm基本不可用了。最近尝试用django做 jxc得出的结论 :(
> >     >>>
> >     >>> On Dec 6, 2007 7:08 PM, vicalloy < zbirder在gmail.com
> >     zbirder在gmail.com> zbirder在gmail.com
> >     zbirder在gmail.com>>
> >     >>> zbirder在gmail.com zbirder在gmail.com> >
> >     zbirder在gmail.com zbirder在gmail.com>%3E>> wrote:
> >     >>>
> >     >>> 前言
> >     >>> 使用Django开发WEB2.0的同学注意了,Django很可能存在性能问题,而且是
> >     >>> 灾难性的。(和算命先生一样,先吓唬吓唬人,哗众取宠)
> >     >>>
> >     >>> 问题
> >     >>> WEB2.0提倡的是用户交互,因此WEB2.0站点不可能和传统站点一样,将大部
> >     >>> 分的页面都静态化。在频繁的交互中,数据库的访问必不可少。但
> >     Django的O/R
> >     >>> Map实在让人没底。
> >     >>> Django的O/R Map使用方便,但基本是个黑盒,难以进行优化。也许有人说
> >     >>> 优化是以后的事。但很多时候在最开始没有留下优化的余地,到真正需要优
> >     >>> 化的时候将苦不堪言。
> >     >>> 对数据库的优化主要有减少数据库的访问和sql优化。将少数据库的访问可
> >     >>> 以通过cache等方式实现,这部分应当都一样,没有太多可以讨论的。对于
> >     >>> SQL 的优化,Django的O/R
> >     >>> Map实在封得太多,似乎也不存在太多优化余地,只能将O/R Map换成SQL。
> >     >>> 但O/R Map在一定程度上是一种设计思想,将一个已经上线的O/R Map换成
> >     >>> SQL并不会是一件很轻松的事。
> >     >>> 分表也是常用的数据库优化方式,像Hibernate还可以使用Native Sql实现
> >     >>> 对分表的支持,但Django就不行。这时候有得换成Sql。
> >     >>> 等改完后,原先优美的代码都已经变得惨不忍睹了。
> >     >>>
> >     >>> 相关数据
> >     >>> Django的应用中一直没有出现过什么大流量的网站。Django的普及程度可以
> >     >>> 说明一定问题,但或许Django本身就不适合做这个。
> >     >>> 由于我并没有什么大流量的django站点,因此我的数据只能从网上找了。
> >     >>> PS:我的小站,使用的是Bluehost主机中最便宜的一款,虽然没什么流量,
> >     >>> 但我进管理平台的时候几乎100%的500错误。
> >     >>>
> >     >>> 网站名称 使用技术 Alexa排名/
> >     >>> 收录量/PageView 内存/ CPU
> >     >>> Delphi盒子 ASP/SQLServer 21.05w
> >     >>> /3.57w /3w 1GRAM/NA
> >     >>> 好看簿 Django
> >     >>> 16.9w /7.05w /NA 3服务器
> >     >>> JavaEye ROR
> >     >>> 2w /24.6w/15w 4G
> >     >>> 豆瓣(2006数据) Quixote NA /NA
> >     >>> /30w NA
> >     >>>
> >     >>> 备注:
> >     >>> 好看簿
> >     >>> 虽然具体流量不清楚,但参考Alexa的排名,流量应当在10w以下。
> >     >>> 这个最早是有木头那听来的,知道是Django做的。今天在网上看到好看
> >     簿的
> >     >>> 介绍,说换了3台服务器。
> >     >>> 对于创业期的网站来说,如果不是处于性能原有,应当不会如此奢侈。
> >     >>> 因此猜测在单服务器时候,负载已经不太低了。
> >     >>>
> >     >>> Delphi盒子
> >     >>> 这个不属于WEB2.0页面交互比较少,因此数据库访问应当不会太过频繁。
> >     >>> 仅仅做参考。
> >     >>>
> >     >>> JavaEye
> >     >>> 这个大家应当都比较熟悉。关于JavaEye的流量站长大人自己说得最清
> >     楚了。
> >     >>> HP DL145 G1,两路AMD Operton 2GHz CPU, 4G DDR RAM, 73G SCSI
> >     15k Disk
> >     >>> Linux Kernel-2.6.7,lighttpd-1.4.13,MySQL-5.0,ruby-1.8.4(GC
> >     patch)
> >     >>> 由于网站的访问量大部分集中在早上9.00到晚上9.00这12个小时的范围内。
> >     >>> 因此可以大致粗略的认为12小时处理12万动态请求,平均每小时处理1万动
> >     >>> 态请求,也就是说平均每秒处理3个动态请求。
> >     >>> 服务器的平均CPU使用率在繁忙的时候,大概15%左右,MySQL数据库繁忙的
> >     >>> 时候平均每秒发送超过100条SQL语句,24小时平均每秒发送45条 SQL语句。
> >     >>> 硬盘IO非常少
> >     >>>
> >     >>> 豆瓣
> >     >>> WEB2.0的代表,通是使用python开发。阿北在豆瓣的早期有谈论过豆瓣的性
> >     >>> 能问题。
> >     >>> 现在cpu使用15%左右。每天30万页访问(白天每秒10次的样子),100%是动
> >     >>> 态页面。服务器的访问响应时间平均仍在0.05秒以下。
> >     >>> 加上所有的封面照片,是有几十个G。不过这些不在数据库里。数据库现在
> >     >>> 有5G, 最多的是书的信息(40多万条)和用户收藏和评价(50多万条)。这个不
> >     >>> 包括冗余。
> >     >>> mysql用了innodb和myiam. 读/写频繁的用innodb, 读多写少、写多读少(比
> >     >>> 如log)或者需要full text
> >     >>> index的用myiam. replication/cluster还没有,不过很快会有。现在每晚
> >     >>> 用mysqldump做backup.
> >     >>>
> >     >>> --
> >     >>> Blog http://vicalloy.spaces.live.com/
> >     >>> My googlepage http://vicalloy.googlepages.com/
> >     >>> OldPhoto http://www.lzpian.com/
> >     >>> _______________________________________________
> >     >>> python-chinese
> >     >>> Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>>
> >     >>> python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>>
> >     >>> Subscribe: send subscribe to
> >     >>> python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> Unsubscribe: send unsubscribe to
> >     >>> python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >     >>>
> >     >>>
> >     >>>
> >
> ------------------------------------------------------------------------
> >
> >     >>>
> >     >>> _______________________________________________
> >     >>> python-chinese
> >     >>> Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>>
> >     >>> Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >     >>>
> >     >> Django的问题:模型更改是一场灾难(权限系统污染等等),与数据库
> >     的兼容性
> >     >> 差,模板选择余地少,等等总之这个东东不适合中小型企业,个人玩玩
> >     还可以,用
> >     >> 过以后感觉就是一个垃圾产品。
> >     >> _______________________________________________
> >     >> python-chinese
> >     >> Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn> > >     python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>>
> >     >> Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >> Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>>
> >     >> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >     >
> >     > _______________________________________________
> >     > python-chinese
> >     > Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     > Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     > Unsubscribe: send unsubscribe to
> >     > python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >     >
> >     >
> >
> ------------------------------------------------------------------------
> >
> >     >
> >     > _______________________________________________
> >     > python-chinese
> >     > Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     > Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     > Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >     _______________________________________________
> >     python-chinese
> >     Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> >
> > --
> > Nicholas @ Nirvana Studio
> > http://www.nirvanastudio.org
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
> -------------- 涓���ㄥ� --------------
> 一个HTML附件被移除...
> URL:
> http://python.cn/pipermail/python-chinese/attachments/20071210/74221c29/attachment.html
>
> ------------------------------
>
> _______________________________________________
> python-chinese mailing list
> python-chinese在lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
> 结束python-chinese 摘要, 卷 48, 发布 87
> **********************************************
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号