[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of articles




Just a quick thought of how I invisioned this working:

In Display::buildMatchList() you should be able to scan the list 'hits'
"*matches" that htdig generated.  From there, start building a quicksort
tree, sorting each hit by the value of id in the URL.  If during the sort
you find that the id already exists, just delete the entry from *matches.

Hope that helps.

On Fri, 16 Jul 1999, Dean Giberson wrote:

> Jason Pincin wrote:
> 
> > On the fly?
> >
> > Yes, but you'd need to hit MySQL from C++ with the MySQL libs and do a
> > fairly large query.  Not sure if the performance hit there would warrant
> > your decreased data size.
> >
> > Let me know your thoughts.
> >
> > Jason
> >
> > On Thu, Jul 15, 1999 at 05:27:58PM -0600, Dean Giberson wrote:
> > > Is there a method to get a count of the current number of articles? This
> > > would let me reduce my algorithm data size by 8. This needs to be
> > > accessed in C/C++
> 
> K, I'll go back to the drawing borad ;-)
> 

--
Aaron Turner, Core Developer       http://vodka.linuxkb.org/~aturner/
Linux Knowledge Base Organization  http://linuxkb.org/
Because world domination requires quality open documentation.