我需要重新索引我的所有域实例从一个活的遗留数据库,其中~400 k反折在数据库读取域对象从数据库一个一个,并重新索引得到~15分钟。
使用reindex进行的迭代要花费8-10个小时,并在remdisk中使用索引:
ids.each { id ->
Domain.reindex(id)
}
由于DB连接超时,我不能使用Domain.reindex()
SearchableService.reindexAll(列表)大约需要2小时。但是这个方法是不可取的。
由一个线程更新的索引。磁盘上索引的结果大小~0.5Gb
我怎么才能证明露西娜的业绩呢?据我所知,重新索引我的信息应该有一个小时左右。
发布于 2014-04-18 19:18:31
根据https://stackoverflow.com/a/13128140/166062的说法,好的设置是:
compassSettings = [
'compass.engine.optimizer.schedule.period': '300',
'compass.engine.mergeFactor':'1000',
'compass.engine.maxBufferedDocs':'1000',
'compass.engine.ramBufferSize': '128',
'compass.engine.useCompoundFile': 'false',
'compass.transaction.processor': 'read_committed',
'compass.transaction.processor.read_committed.concurrentOperations': 'false',
'compass.transaction.lockTimeout': '30',
'compass.transaction.lockPollInterval': '500',
'compass.transaction.readCommitted.translog.connection': 'ram://'
]
https://stackoverflow.com/questions/21890090
复制相似问题