[Hippo-cms7-user] Faceted navigation, paginating and performance

Ard Schrijvers a.schrijvers at onehippo.com
Fri Jun 1 10:13:57 CEST 2012


On Thu, May 31, 2012 at 5:36 PM, Wouter Danes <Wouter.Danes at hinttech.com> wrote:
> I was afraid of this. :) How much effort do you think it would be to make this possible? :-)

In the order of weeks to months I would guess (taking into account
that that part of the code is very delicate and you'd have to clearly
understand it before being able to modify it...)

> I'd be tempted to put effort into this myself, unless it's so much work that it's better to wait for SOLR. :)
>
> -------------------------------------------------
> Wouter Danes
> Engineer - Hippo / Tridion / Java
> Competence Manager Java - Hippo - Alfresco
>
> Hinttech B.V.
> Delftechpark 37i
> 2628 XJ Delft
> www.hinttech.nl
>
> E: wouter.danes at hinttech.com
> M: +31 6 1158 8264
> -------------------------------------------------
>
> ________________________________________
> Van: hippo-cms7-user-bounces at lists.onehippo.org [hippo-cms7-user-bounces at lists.onehippo.org] namens Ard Schrijvers [a.schrijvers at onehippo.com]
> Verzonden: donderdag 31 mei 2012 17:22
> Aan: Hippo CMS 7 development public mailinglist
> Onderwerp: Re: [Hippo-cms7-user] Faceted navigation, paginating and performance
>
> On Thu, May 31, 2012 at 3:54 PM, Wouter Danes <Wouter.Danes at hinttech.com> wrote:
>> Hi all,
>>
>> We have a faceted navigation implementation in our current project and I've
>> been trying to get some quick wins when it comes to performance.
>> With a HstQuery it's quite easy to only load those Documents that you want
>> to show on the screen, using setLimit() and setOffset(). Now with Faceted
>> navigation, these two parameters are ignored, it just "copy pastes" the
>> string-representation of the query into the XPath that is used to create the
>> faceted navigation bean.
>>
>> When I look at the implementation of HippoBeanIterator.skip(X), it does a
>> nextNode() X times, which means every bean that is skipped is also loaded
>> from the repository, which is something which slows down the whole thing.
>>
>> I haven't been able to do a sort of "give me 10 nodes from offset 40" on the
>> resultset of a facetednavigationbean, is there a way to do this? It would
>> really speed up the rendering of my pages, I think..
>
> This is current;y not possible because faceted navigation resultset is
> loaded only once after which the virtual nodes cannot change any more.
> That is why you need to load 'all' the nodes in the resultset that you
> might want to show.
>
> Sry for the bad news, but there are no quick wins there to be found
>
> Ard
>
>>
>> Regards,
>>
>> Wouter
>>
>> -------------------------------------------------
>> Wouter Danes
>> Engineer - Hippo / Tridion / Java
>> Competence Manager Java - Hippo - Alfresco
>>
>> Hinttech B.V.
>> Delftechpark 37i
>> 2628 XJ Delft
>> www.hinttech.nl
>>
>> E: wouter.danes at hinttech.com
>> M: +31 6 1158 8264
>> -------------------------------------------------
>>
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



-- 
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com



More information about the Hippo-cms7-user mailing list