项目中 需要大量数据的保存操作,每条执行save操作效率太低,在官网上找到bull_create 的批量存储方式,效率提高很多Insert in bulkWhen creating objects, where possible, use thebulk_create()method to redu...
分类:
其他好文 时间:
2014-06-28 23:24:44
阅读次数:
594
Linux修改环境变量,很简单但很重要一、Linux的变量种类按变量的生存周期来划分,Linux变量可分为两类:1. 永久的:需要修改配置文件,变量永久生效。2. 临时的:使用export命令行声明即可,变量在关闭shell时失效。二、设置变量的三种方法1. 在/etc/profile文件中添加变量...
分类:
系统相关 时间:
2014-06-28 23:17:39
阅读次数:
262
#!/bin/bash###################################################### export the whole database use exp utility. ##################################...
分类:
其他好文 时间:
2014-06-28 19:58:18
阅读次数:
215
1、在计算机联网情况下,打开终端: sudo apt-get install tomcat72、设置环境变量: sudo gedit /etc/profile 在编辑器内添加以下内容: export CATALINA_HOME="/usr/share/tomcat7"截图如下: 上面的部分是安装jd...
分类:
其他好文 时间:
2014-06-21 09:27:12
阅读次数:
213
如何进行文件操作[1]显示对话框,取得文件名1 CString FilePathName;2 CFileDialog dlg(TRUE);//TRUE为OPEN对话框,FALSE为SAVE AS对话框3 if (dlg.DoModal() == IDOK)4 FilePathName=dlg.Get...
分类:
其他好文 时间:
2014-06-21 00:07:01
阅读次数:
281
iptables-save > /root/myiptables将iptables规则导入到文件/root/myiptablseiptables-restore < /root/myiptables将/root/myiptalbes中的iptables规则导入到iptables
分类:
其他好文 时间:
2014-06-18 11:13:58
阅读次数:
159
在bash下中文乱码,因为locale没有正确设置,在bash下执行:/usr/share/locales/install-language-pack zh_CNsudo locale-gen编辑用户主目录下 ~/.bashrc 文件,添加内容export LANG="zh_CN.UTF-8"exp...
分类:
其他好文 时间:
2014-06-18 10:51:44
阅读次数:
211
magento自己带有导入导出功能
后台system-->import/export-->Advanced Profiles
进入后点击add new profiles
就可以新建一个规则了
Profile Name *是名字
Actions XML *是对应的参数
譬如例子:
file
var/import
...
分类:
其他好文 时间:
2014-06-18 08:01:20
阅读次数:
266
在函数定义中,使用my关键字来确保用户定义函数中所使用的变量名不与任何其它同名的全局变量冲突,它使其后面的变量成为通常语言所谓的local变量。缺省情况下,perl函数中的变量是全局变量。 local变量先save再store.
如下例:
$x = 9;
sub mm{
print "$x\n";
}
sub gg_my{
my $x = 11;
print "call...
分类:
其他好文 时间:
2014-06-17 19:34:30
阅读次数:
265
linux命令无效-bash:ls:commandnotfound一次重启后开机,基本所有的命令都不可用,只有少数的命令可用[root@centos-1~]#ll-bash:ls:commandnotfound[root@centos-1~]#pwd/root[root@centos-1~]#shutdown-rnow-bash:shutdown:commandnotfound[root@centos-1~]#export$PATH-bash:..
分类:
系统相关 时间:
2014-06-17 17:45:16
阅读次数:
368