背景:之前对于数据库操作部分大多停留在会使用阶段,并未真正考虑过数据库SQL语句的执行效率问题。近期响应项目组其他成员需要,协助手动修改数据库。为了提高工作效率编写了C#测试工程进行相关操作。由于数据库记录量较大(超过10K条),在编写程序过程中发现不同的操作执行效率相差甚远,特做记录如下,待后续有时间再深入分析各种数据库的SQL语句的执行效率。
此次数据库修改要求涉及到删除、修改、添加等各种操作,...
分类:
数据库 时间:
2015-08-16 21:27:41
阅读次数:
218
Dynamic ProgrammingThere is a nice introduction to the DP algorithm in thisWikipedia article. The idea is to maintain a running maximumsmaxand a curre...
分类:
其他好文 时间:
2015-08-16 16:22:54
阅读次数:
128
1.如何调用该方法:fromfabricimportcontext_managersps:上下文管理需要用with关键字启用:如:withcontext_managers.cd(‘/tmp‘):run(...)这样才能保证是在该目录下操作。2.方法:(1)withcontext_managers.cd(一个目录的路径):指定进入一个目录,然后在该目录下执行操作。例..
分类:
其他好文 时间:
2015-08-16 00:49:39
阅读次数:
132
[root@localhost]#yuminstallapp*Existinglock/var/run/yum.pid:anothercopyisrunningaspid3807.Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...Anotherappiscurrentlyholdingtheyumlock;waitingf..
分类:
移动开发 时间:
2015-08-16 00:46:18
阅读次数:
161
构建Apache Tomcat 6.0 Servlet/JSP 容器这个子项目包含了Tomcat 6.0的源代码,一个实现了Java Community Process http://www.jcp.org/ 的Servlet2.5和JSP2.1标准的容器。注意:如果你只需要运行Tomcat,没有必要去构建它,你可以非常方便的下载一个二进制发布包。它是跨平台的。阅读RUNNING.txt文件,它介绍...
分类:
Web程序 时间:
2015-08-15 23:09:40
阅读次数:
245
计划任务日志、搭建远程日志管理计划任务at 只能执行一次语法:at time(时间)服务: atd 必须开启 [root@pagoda63 ~]# /etc/init.d/atd status #查看atd服务状态 atd (pid 2108) is running...创建计划任务 [root@p...
分类:
系统相关 时间:
2015-08-14 13:42:56
阅读次数:
238
本文简单介绍下僵尸进程。 介绍之前,首先了解一下linux中进程的6大状态。D Uninterruptible sleep (usually IO)R Running or runnable (on run queue)S Interruptible ...
分类:
系统相关 时间:
2015-08-13 20:06:41
阅读次数:
241
Introduction to Mesos + Docker Apache Mesos is a cluster manager that simplifies the complexity of running tasks on a shared pool of servers. Docker is a lightweight container for deploying package...
分类:
其他好文 时间:
2015-08-13 18:18:59
阅读次数:
634
在用eclipse开发项目时,有时候导入项目后,报错为 Problem Occurred: Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 避免提醒的解决方案...
分类:
Web程序 时间:
2015-08-13 11:31:35
阅读次数:
146
1、类
Class lio{
Public
Protect
Private
Function __constructor(){}
}
2、类的实例化
<?php
class lio{
//定义属性,需要加权限修饰符
public $a="lveo";
//定义方法,需要加权限修饰符
public function running(){
echo 521;
}
public...
分类:
Web程序 时间:
2015-08-12 21:47:02
阅读次数:
125