search for: yanxiong

Displaying 2 results from an estimated 2 matches for "yanxiong".

Did you mean: yanking
2014 Jun 26
2
About memory index/search in multithread program
...lock int Search(); //safe in one object, do not need lock }; XIPIAN xp[ THREAD_NUM ]; one thread use one object, they use one database. these can be in memory with one database. 2014-06-24 20:48 GMT+08:00 Olly Betts <olly at survex.com>: > On Thu, Jun 19, 2014 at 10:52:13PM +0800, Yanxiong Lu wrote: > > Why xapian don't support memory index/search ? > > > > I know there is a method can create memory datebase, like this: > > Xapian::WritableDatabase db(Xapian::InMemory::open()); > > While the inmemory backend is handy for some things, in its current...
2014 Jun 19
2
About memory index/search in multithread program
hi, Why xapian don't support memory index/search ? I know there is a method can create memory datebase, like this: Xapian::WritableDatabase db(Xapian::InMemory::open()); *But, if i use these in multithread program, i need create many datebases!!* Xapian::WritableDatabase db1(Xapian::InMemory::open()); //used in thread1 Xapian::WritableDatabase db2(Xapian::InMemory::open()); //used in