[Xapian-discuss] Re: Re: Is there any way to modify the value ofdocumentsaved ago?

Kevin Duraj kevin.softdev at gmail.com
Tue Aug 21 00:40:02 BST 2007


... by using RDBMS you will get ultra slow updating ... :-)

... by using multiple CPUs hitting one Shared Memory, forking only once
with C++ FastCGI on Apache 2 you will get the ultra fast updating ...


Kevin Duraj
http://pacificair.com

On 8/9/07, Alexander Lind <malte at webstay.org> wrote:
> I agree, if there is any way to implement an ultrafast updating method
> in Xapian, that would be most useful.
>
> Alec
>
> Sungsoo Kim wrote:
> > Thank you for your kind reply!
> >
> > I need the same function as Hightman asked.
> >
> > In general RDBMS we can change values in a certain field very easily
> > and get query results sort by the field.
> >
> > Xapian's value can be thought as field of RDBMS, even thought not
> > exactly same, and can be used to sort the search result.
> >
> > Therefore I also ask this requirement can be considered in the future
> > release. It will be very useful to Xapian users.
> >
> >
> >
> > Sungsoo Kim
> >
> >
> >
> > "James Aylett" <james-xapian at tartarus.org> wrote in message news:20070809093815.GB29333 at tartarus.org...
> > *Please* keep discussions on-list. There are many more people who can
> > help, that way, and the discussion is archived for use by future users.
> >
> > On Thu, Aug 09, 2007 at 08:35:47AM +0800, Hightman(马明练) wrote:
> >
> >
> >> Actually, these values will be updated are all have a static length,
> >> and I can get the document id by the unique indexed term
> >> (Xapian::Database::postlist_begin) .  So if we can get the real
> >> offset for these values in the database file, update these values
> >> will be possible and simple.
> >>
> >
> > It isn't a flat file though - it's a btree on disk. You might be able
> > to use the internal flint library to access and update things, but no
> > one's ever tried this to my knowledge. We don't install the header
> > files, so you'll have to hack around a bit to get this to work - and
> > if we change the database format in future, or the internal API,
> > you'll have to redo your work. However if you need the greater speed,
> > this may be the only solution.
> >
> > J
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Xapian-discuss mailing list
> > Xapian-discuss at lists.xapian.org
> > http://lists.xapian.org/mailman/listinfo/xapian-discuss
> >
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>


-- 
Cheers,
   Kevin Duraj
   http://pacificair.com


More information about the Xapian-discuss mailing list