为了解决写索引时频繁提交带来的效率问题,考虑使用自动提交。在solrconfig.xml中增加以下代码: 1000 10000 maxDocs:当内存索引数量达到指定值的时候,将内存的索引DUMP到硬盘中,并通知searcher类...
分类:
其他好文 时间:
2014-08-25 18:33:44
阅读次数:
211
这里面的清理缓存可以理解为hibernate自动执行了一次 session.flush();
选择什么样的flush mode就是采取对hibernate session采取什么样的数据刷新的策略。
Session.setFlushMode()用于设定清理缓存的时间点。
对比一下几种flush mode:
FlushMode.AUTO:
调用Session的查询方法时,清理...
分类:
系统相关 时间:
2014-08-25 15:00:24
阅读次数:
228
(1)uuid
采用XML配置方式
自动生成ID:
采用uuid方式自动生成的ID为string类型
(2)native
根据不同的数据库采用不同的ID生成方式,例如:在SQL Server中采用identity; 在MySQL中采用auto_incremen...
分类:
系统相关 时间:
2014-08-25 13:26:04
阅读次数:
358
ti8168 原始文件系统进去后没有网络eth0接口,为了有该接口需要配置/etc/network/interfaces 文件
具体配置如下(红色要配置)
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
ifac...
分类:
其他好文 时间:
2014-08-25 11:50:04
阅读次数:
249
/* 标签页菜单 */div.bs-docs-example { position: relative; width: 600px; margin: 15px auto; padding: 39px 19px 14px; background-color: white; border: 1px so...
分类:
其他好文 时间:
2014-08-24 19:22:32
阅读次数:
305
/* 表单2 */ form.bs-docs-example { position: relative; width: 600px; margin: 15px auto; padding: 39px 19px 14px; background-color: white; border: 1px so...
分类:
其他好文 时间:
2014-08-24 14:10:32
阅读次数:
334
通常认为,性能的改进是90 ~ 10 规则, 即10%的代码要对90%的性能问题负责。做过大型软件工程的程序员一般都知道这个概念
分类:
编程语言 时间:
2014-08-24 05:55:43
阅读次数:
256
为锐捷配置网络ip,以及DNS1.配置IP网关:sudo gedit /etc/network/interfaces静态IP修改配置文件如下改成自己的参数():auto loiface lo inet loopbackauto eth0iface eth0 inet static#pre-up if...
分类:
其他好文 时间:
2014-08-23 17:36:31
阅读次数:
419
这几个属性做滚动时会经常用到,现总如下:
首先定义一个div,样式如下:
*{ margin:0px; padding:0px;}
body{ margin:0px; padding:10px; border:solid 10px #69F;}
.aa{ margin:20px auto 0px; width:100px; height:50px; overflow:auto; bor...
分类:
其他好文 时间:
2014-08-23 14:01:00
阅读次数:
163
先来个低幼版方案,这是芝麻街之类儿童节目VI配置而成的吧?
接着看到这个脑中浮现出屏幕前一双马尾萝莉吃着棒棒糖写前端的画面。
【救命!太甜无法直视.. 】
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”下面 才是干货“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“
"set to auto read...
分类:
其他好文 时间:
2014-08-22 22:37:37
阅读次数:
378