[Xapian-discuss] how can i reduce cpu usage

ouwind ouwind at 163.com
Wed Sep 2 08:54:13 BST 2009


i used flint as my backend database. and i add sleep in function of FlintTable::add and FlintTable::del to reduce cpu usage. and it works in when call add_document.the cpu usage below 10%. but when i insert 15k documents, it will get very high cpu usage, will have many times more than 40% in two minutes. what does it do in that time. adjust the index? and how can reduce the cpu usage. where can i add sleep to reduce the usage in that two minutes and in the time of commit_transaction

2009-9-2



ouwind


More information about the Xapian-discuss mailing list