You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Christopher Blasnik <ch...@gmail.com> on 2009/11/12 14:23:09 UTC

Weblog tagcloud / performance

Hello all,

I would need some opions / info on the performance of tagcloud queries:
Everyone surely is familiar with the call to

$model.weblog.getPopularTags...


in order to create a tagcloud.

The actual logic is done in velocity, and getPopularTags issues a DB query.

Here are my questions:
- Is this fast enough for sites with a lot of traffic && a lot of tags?
- Is there any caching involved for the tag queries (looks like there 
isn't, but it is very likely that I've overlooked something obvious)?
- If there's no caching, would you recommend to move the tag-cloud query 
to a cached object  (again, for a high-traffic site)?
  [This would be needed for a site with lots of tags AND lots of 
traffic. My suggestion would be to cache / flush the cache of  tags once 
per day]

Cheers,
- Chris

-- 
Christopher Blasnik
UCS - unique computing solutions gmbh
Löwengasse 2/8
A-1030 Vienna, Austria
http://www.ucs.at/
mailto:c.blasnik@ucs.at




Re: Weblog tagcloud / performance

Posted by Christopher Blasnik <ch...@gmail.com>.
Hi Dave & Matthias,

The Weblog Entry tags query is done against a tag-statistics table and
so it should be fast.



Thanks, I just spotted the roller_weblogentrytagagg table


All Roller Weblog pages are cached by default.


Have you done some performance testing that shows a problem with tag

performance?


Quite frankly, no. I wanted to identify any known issues beforehand.

- Dave




Matthias Schmidt wrote:
> Blogs.sun.com uses memcached for caching.

We are going to use memcached as well (atm. we are evaluating if the 
roller 4.0 memcached plugin still works with the 5.0 beta version).


So I gather from your answers that using the combination of the standard 
caching (adapted for a high-traffic site) + the statistics table + 
memcached should leave me w/o any worries concerning performance ;-)

Thanks for the quick help guys,
- Chris

-- 
Christopher Blasnik
UCS - unique computing solutions gmbh
Löwengasse 2/8
A-1030 Vienna, Austria
http://www.ucs.at/
mailto:c.blasnik@ucs.at

>
>
>
> Am 12.11.2009 um 14:23 schrieb Christopher Blasnik 
> <ch...@gmail.com>:
>
>> Hello all,
>>
>> I would need some opions / info on the performance of tagcloud queries:
>> Everyone surely is familiar with the call to
>>
>> $model.weblog.getPopularTags...
>>
>>
>> in order to create a tagcloud.
>>
>> The actual logic is done in velocity, and getPopularTags issues a DB 
>> query.
>>
>> Here are my questions:
>> - Is this fast enough for sites with a lot of traffic && a lot of tags?
>> - Is there any caching involved for the tag queries (looks like there 
>> isn't, but it is very likely that I've overlooked something obvious)?
>> - If there's no caching, would you recommend to move the tag-cloud 
>> query to a cached object  (again, for a high-traffic site)?
>> [This would be needed for a site with lots of tags AND lots of 
>> traffic. My suggestion would be to cache / flush the cache of  tags 
>> once per day]
>>
>> Cheers,
>> - Chris
>>
>> -- 
>> Christopher Blasnik
>> UCS - unique computing solutions gmbh
>> Löwengasse 2/8
>> A-1030 Vienna, Austria
>> http://www.ucs.at/
>> mailto:c.blasnik@ucs.at
>>
>>
>


Re: Weblog tagcloud / performance

Posted by Matthias Schmidt <ma...@gmx.de>.
Blogs.sun.com uses memcached for caching.



Am 12.11.2009 um 14:23 schrieb Christopher Blasnik <christopher.blasnik@gmail.com 
 >:

> Hello all,
>
> I would need some opions / info on the performance of tagcloud  
> queries:
> Everyone surely is familiar with the call to
>
> $model.weblog.getPopularTags...
>
>
> in order to create a tagcloud.
>
> The actual logic is done in velocity, and getPopularTags issues a DB  
> query.
>
> Here are my questions:
> - Is this fast enough for sites with a lot of traffic && a lot of  
> tags?
> - Is there any caching involved for the tag queries (looks like  
> there isn't, but it is very likely that I've overlooked something  
> obvious)?
> - If there's no caching, would you recommend to move the tag-cloud  
> query to a cached object  (again, for a high-traffic site)?
> [This would be needed for a site with lots of tags AND lots of  
> traffic. My suggestion would be to cache / flush the cache of  tags  
> once per day]
>
> Cheers,
> - Chris
>
> -- 
> Christopher Blasnik
> UCS - unique computing solutions gmbh
> Löwengasse 2/8
> A-1030 Vienna, Austria
> http://www.ucs.at/
> mailto:c.blasnik@ucs.at
>
>

Re: Weblog tagcloud / performance

Posted by Dave <sn...@gmail.com>.
The Weblog Entry tags query is done against a tag-statistics table and
so it should be fast.

All Roller Weblog pages are cached by default.

Have you done some performance testing that shows a problem with tag
performance?

- Dave


On Thu, Nov 12, 2009 at 8:23 AM, Christopher Blasnik
<ch...@gmail.com> wrote:
> Hello all,
>
> I would need some opions / info on the performance of tagcloud queries:
> Everyone surely is familiar with the call to
>
> $model.weblog.getPopularTags...
>
>
> in order to create a tagcloud.
>
> The actual logic is done in velocity, and getPopularTags issues a DB query.
>
> Here are my questions:
> - Is this fast enough for sites with a lot of traffic && a lot of tags?
> - Is there any caching involved for the tag queries (looks like there isn't,
> but it is very likely that I've overlooked something obvious)?
> - If there's no caching, would you recommend to move the tag-cloud query to
> a cached object  (again, for a high-traffic site)?
>  [This would be needed for a site with lots of tags AND lots of traffic. My
> suggestion would be to cache / flush the cache of  tags once per day]
>
> Cheers,
> - Chris
>
> --
> Christopher Blasnik
> UCS - unique computing solutions gmbh
> Löwengasse 2/8
> A-1030 Vienna, Austria
> http://www.ucs.at/
> mailto:c.blasnik@ucs.at
>
>
>
>