今天,数据库的操作越来越成为整个应用的性能瓶颈了,这点对于Web应用尤其明显。关于数据库的性能,这并不只是DBA才需要担心的事,而这更是我们程序员需要去关注的事情。当我们去设计数据库表结构,对操作数据库时(尤其是查表时的SQL语句),我们都需要注意数据操作的性能。这里,我们不会讲过多的SQL语句的优...
分类:
数据库 时间:
2014-04-29 16:20:58
阅读次数:
653
案例描述
在定时脚本运行过程中,发现当备份表格的sql语句与删除该表部分数据的sql语句同时运行时,mysql会检测出死锁,并打印出日志。两个sql语句如下:
(1)insert into backup_table select * fromsource_table (2)DELETE FROM s...
分类:
数据库 时间:
2014-04-29 15:28:42
阅读次数:
775
Most of the database intensive applications are
worring about the default values of these variables obviously. Developers used
to inform me that they ...
分类:
数据库 时间:
2014-04-29 15:26:38
阅读次数:
739
使用三台虚拟机器, Ubuntu1(nginx) 192.168.226.128
Ubuntu2(php-fpm+memcached)192.168.226.132 CentOS(MySQL)192.169.226.130PHP
框架使用CakePHP,这个是很常用的MVC 框架,基于事件的分...
分类:
Web程序 时间:
2014-04-29 15:24:41
阅读次数:
477
不推荐一个分区,而是推荐最起码的分区1、win 7系统2、文件和数据3、备份(分区大小与win
7系统分区相同)备份:本机+DVD(放在一个安全的地方,如朋友家、办公室抽屉)硬件更换较容易,但是数据和照片、视频很难!win
7在使用过程中要求重装系统(不损失数据),也可能要彻底重装(泪!!!!!)双...
Binary String Matching时间限制:3000ms |
内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and
‘1’. Your task is only to tell ho...
分类:
其他好文 时间:
2014-04-29 15:02:00
阅读次数:
564
2014-04-29
00:15题目:将二叉搜索树展开成一个双向链表,要求这个链表仍是有序的,而且不能另外分配对象,就地完成。解法:Leetcode上也有,递归解法。代码: 1 //
17.13 Flatten a binary search tree into a doubly linked li...
分类:
其他好文 时间:
2014-04-29 14:51:49
阅读次数:
460
1.下载angularjs进入其官网下载:https://angularjs.org/?,建议下载最新版的:https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.7/angular.js所有版本:https://code.angular...
分类:
Web程序 时间:
2014-04-29 14:36:28
阅读次数:
895
I had been waiting for the latest MySQL
connector for .NET to come out so I can move on to the new and sleek Visual
Studio 2012 for my projects. Found...
分类:
数据库 时间:
2014-04-29 14:17:54
阅读次数:
753
1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
22 23 24 25 ...
分类:
数据库 时间:
2014-04-29 14:13:53
阅读次数:
669