上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: (After having explained this for the 35th time, I decided it's time to simply put something on-line.)When a MyISAM table grows large enough, you'll encounter the dreaded "The table is full" error. Now I could simply point at that page and leave this subject alone, but there's m 阅读全文
posted @ 2011-12-22 14:06 SophiaTang 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Most programmers may already know the main different between CHAR and VARCHAR - Thefirst onesupports fixed-length data and the second one supports variable-lengths of data.Some people may think, since VARCHAR can do what CHAR does, then why we still need CHAR in ourdatabase design. I even have heard 阅读全文
posted @ 2011-12-22 11:46 SophiaTang 阅读(198) 评论(0) 推荐(0) 编辑
摘要: ProblemI have a database calledhibernatein my MySQL server and I grant privileges to a user using this command> grant all on hibernate.* to 'testuser'@'%' identified by 'testuser';Wildchar%means no matter where the user logs in mysql server from, the access should be allow 阅读全文
posted @ 2011-12-21 23:24 SophiaTang 阅读(350) 评论(0) 推荐(0) 编辑
摘要: HTTP Caching 用好了,可以极大的减小服务器负载和减少网络带宽。十分有必要深入了解下 http 的 caching 协议。 先来看下请求/响应过程:http 请求/响应 1、用 Last-Modified 头 在第一次请求的响应头返回 Last-Modified 内容,时间格式如:Wed, 22 Jul 2009 07:08:07 GMT。是零时区的 GMT 时间,servlet 中可以用 response.addDateHeader ("Last-Modified", date.getTime ()); 加入响应头。如图:last-modified 和 If-M 阅读全文
posted @ 2011-12-21 21:53 SophiaTang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 目录1、什么是执行计划?执行计划是依赖于什么信息2、 统一SQL语句的写法减少解析开销3、 减少SQL语句的嵌套4、 使用“临时表”暂存中间结果5、 OLTP系统SQL语句必须采用绑定变量6、 倾斜字段的绑定变量窥测问题7、 begin tran的事务要尽量地小8、 一些SQL查询语句应加上nolock9、加nolock后查询经常发生页分裂的表,容易产生跳读或重复读10、聚集索引没有建在表的顺序字段上,该表容易发生页分裂11、使用复合索引提高多个where条件的查询速度12、使用like进行模糊查询时应注意尽量不要使用前%13、SQL Server 表连接的三种方式14、Row_number 阅读全文
posted @ 2011-12-21 21:50 SophiaTang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 在Brooks的最新力作《设计原本(The Design of Design)》一书中,提及“一致性”对软件的重要性。他认为:“一致性应该是所有质量原则的根基。好的架构应该是直接的,人们掌握了部分系统后就可以推测出其他部分”。这种所谓“窥一斑而知全豹”的要求,实则是要求保持风格的一致性。 风格的一致性 许多软件公司都会根据自身情况并结合业界规范制定符合本公司情况的编码规范。例如对命名、格式等诸多风格的要求。这种编码风格的一致性是相对容易实现的。Brooks提到的一致性,更多地是体现架构风格的一致性。那么,什么是架构风格(Architecture Style)?在微软撰写的Applicati.. 阅读全文
posted @ 2011-12-21 21:37 SophiaTang 阅读(629) 评论(0) 推荐(0) 编辑
摘要: abis a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.Synopsisab[ -Aauth-user 阅读全文
posted @ 2011-12-21 21:35 SophiaTang 阅读(380) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 importsys,os,os.pathimportpdb#只获得第一层子目录,过滤非目录文件 defgetsubdocs(path=None):doclist=[]if(os.path.isdir(path)):foriteminos.listdir(path):ifitem!='.svn':ifos.path.isdir(path+os.sep+item):doclist.append(item)returndoclist#获得所有层级子目录,过滤非目录文件 defgetallsubdocs(path=None):#pdb.set_trace() 阅读全文
posted @ 2011-12-17 16:27 SophiaTang 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 一段常用db备份脚本 1 #!/bin/bash 2 ### create by yunfei.heyf 3 ### program for backup mysql with mysqldump 4 5 6 BAKDIR="/home/admin/backup" 7 DUMPCMD="/usr/bin/mysqldump -uroot -h127.0.0.1 -pnothing --default-character-set=utf8 --databases " 8 BAKDB="tm" 9 BAKSET="daily_& 阅读全文
posted @ 2011-12-17 16:27 SophiaTang 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://blog.jobbole.com/8980/ 阅读全文
posted @ 2011-12-03 12:56 SophiaTang 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页