[Nepomuk] On limits of terms for a facet

Sebastian Trueg trueg at kde.org
Tue Mar 9 10:24:21 CET 2010


Alessandro Sivieri wrote:
>     2. Restricting by folder (as you do by default using a FILTER) slows
>     down the query A LOT.
> 
> 
> Well, somewhere I need to restrict tags and their count to the current
> folder: if the user changes it through the normal browsing, then the
> tags and also the tag counters need to be restricted to that folder.
> For now I'm doing this directly in the main query, the one getting the
> list of tags; the only alternative that I see here is to get the list of
> tags directly (not through the tagged file list), and then restrict by
> folder when asking for the count of each tag; this may speed up things,
> the only drawback is that it will get _all_ the tags in the first place,
> so that the pruning of the tag list will be done through the model
> (which drops tags with zero as counter) instead of through the query
> itself... in a standard db this would be ugly, but maybe in our case it
> is better, given the fact that sparql is way much slower than sql.


well.... you know my opinion on restricting to a certain folder in
general. ;)

Cheers,
Sebastian


More information about the Nepomuk mailing list