[Xapian-discuss] Re: get_docid over multi-database search

Kevin Duraj kevin.softdev at gmail.com
Fri Dec 14 07:40:20 GMT 2007


Andrey,

Did you measure the performance loss by searching two databases
instead of one database?
And if, how much slower is to search two databases compare to one database ?


_________________________________
  Kevin Duraj
  http://UncensoredWebSearch.com


On Nov 21, 2007 4:43 PM, Andrey <alpha04 at netvigator.com> wrote:
> Very Nice, thanks
>
> did_raw = (did_merged - 1) / number_of_databases + 1
>
> offset = did_merged % number_of_databases
>
> Cheers
> Andrey
>
>
>
>
> "Olly Betts" <olly at survex.com> wrote in message
> news:20071122001120.GJ3839 at survex.com...
>
> > On Wed, Nov 21, 2007 at 01:44:11PM -0800, Andrey wrote:
> >> say I have 2 databases, DB1 and DB2
> >>
> >> after i preformed a search over these 2 DBs, i have 1 result and I want
> >> to
> >> delete this resulting doc, how do i identify which database (DB1 / DB2)
> >> this
> >> document resides? and how to get its docid which is needed during the
> >> delete
> >> process
> >
> >
> > http://article.gmane.org/gmane.comp.search.xapian.general/1375
> >
> >> (delete process must over single writeableDatabase,right?)
> >
> > Yes, WritableDatabase doesn't currently allow multiple subdatabases.
> >
> > Cheers,
> >    Olly
> >
>
>
>
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>



-- 
Cheers
__________________________________
  Kevin Duraj
  http://UncensoredWebSearch.com



More information about the Xapian-discuss mailing list