-
Recent Posts
Archives
Categories
Blogroll
Meta
Category Archives: DBLu
如何按时段和百分比更新数据
举例: 1. 每小时更新10% <schedule time="0 * * *" percent="10" key="tid"> 2. 每天(系统忙)7点到22点,每小时更新10%,(系统闲)1点和5点更新30% <schedule time="0 7-22 * *" percent="10" key="tid"/> <schedule time="0 1,5 * *" percent="30" key="tid"/> * 请在设定时先检查更新的耗时,以便设计合适的更新计划。
Posted in DBLu
Leave a comment
随手记-DBLu试用
// 由于在做索引工作的时间较长,mysql会将连接断掉,下面的数据不正确。这个 bug 已经改正。- 2006.9.3 create index: cast time:5316584 – [host:192.168.0.42] [database:discuz] [table:threads] update index: 18020983 [Timer-3] INFO com.zhongzichang.lucene.IndexSchedulerTask – cast time:606630 – [host:192.168.0.42][database:discuz][table:threads] [where:null][orderBy:null][limit:null][key:tid][url:null] [rebuild:false][analyzerName:cjk][percent:10] 21621416 [Timer-3] INFO com.zhongzichang.lucene.IndexSchedulerTask – cast time:607053 – [host:192.168.0.42][database:discuz][table:threads] [where:null][orderBy:null][limit:null][key:tid][url:null] [rebuild:false][analyzerName:cjk][percent:10] 25223611 [Timer-3] INFO … Continue reading
Posted in DBLu
Leave a comment
随手记-2008-08-30
+ 针对数据库的update操作多的情况,可以采用以下方式加快数据同步: 1. 用户在更新数据后,马上将该条记录的host,database,table,primary key name and value 发送给DBLu,DBLu可以选择将该记录加入等待更新的队列或者马上更新; 2. 如果实在不想在更新数据后的程序中执行任何修改,为了加快索引库的更新,可在程序启动时,将索引库装入内存中,搜索和更新操作面向的将会内存中的数据,并用另外的机器定期负责索引的全部重建工作,在索引全部重建后,在系统idel高时,将重建的索引库重新装入内存,覆盖原来内存镜像。即搜索和更新的操作完全的内存执行,而重建工作在文件系统上做。
Posted in DBLu
Leave a comment