On 7/12/06, BlueJay <[EMAIL PROTECTED]> wrote:
> David Balmain wrote:
> > On 7/11/06, BlueJay <[EMAIL PROTECTED]> wrote:
> >> > "fishing/fiction")))
> >> > Now you just need to run your search the same way. Something like this;
> >> >
> >> Thanks very much for this and I can wait a week for this to be released.
> >> <snip>
> >
> > Great. A word or warning though, it's all new code and you'll be
> > riding on the bleeding edge. But hopefully it will stabalize quickly.
> > I'm working on this full time at the moment (when I'm not answering
> > emails ;-)).
> >
> > Cheers,
> > Dave
>
> Dave
>
> One last thought on this... because this will be new code.... originally
> I was going to write the count as a client side piece of code to count
> the documents in each category. I realised that I would have to return
> the full result set in order to do this which would cause problems with
> performance.
>
> If I were to write this as a server side script, outside of ferret, I
> believe that I could  achieve the same result as in your example. Can
> you think of any gotchas that would make this a stupid idea?

If you mean grab the whole result set and loop through every result
taking a running count then yes, this should work fine. I'd say my
example would be a lot faster but you never know without trying it.

Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to