Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsHelpHelpTutorial CountTutorial Count
Previous
 
Next
New Post
10/14/2006 11:53 PM
 

Is there any way to get a tutorial count next to each category?

Something like this:

Help Category 1 (4)
Help Category 2 (1)
Help Category 3 (17)


Thanks Mike Florida US
 
New Post
1/16/2007 9:05 PM
 
I'll have a think about this.  to do this we would need to interrogate the category_Tutorials table for each category which may impact performance too much.  But ill have a look.

Philip Beadle - Employee
 
New Post
1/16/2007 9:51 PM
 

Thanks for the reply.

Yes. I see where you would be concerned about performance when interrogating another table. If that does turn out to be a problem then maybe the value could be calculated and stored in a field in the Help_Category table during tutorial update?

I guess there will always be the battle of Normalization Vs Performance.


Thanks Mike Florida US
 
New Post
1/16/2007 10:03 PM
 
philip.beadle wrote
I'll have a think about this.  to do this we would need to interrogate the category_Tutorials table for each category which may impact performance too much.  But ill have a look.

I'm not sure what you're thinking, but one of these queries would do it simply enough.

The query that is currently getting the category names could be altered to behave like so:

select cat.CategoryID, cat.Name, count(*) as TutorialCount
  from Help_TutorialCategory tut
  join Help_Category cat on cat.CategoryID = tut.CategoryID
group by cat.CategoryID, cat.Name

Or this query would return just the category IDs and counts:

select CategoryID, count(*) as TutorialCount
  from Help_TutorialCategory
group by CategoryID


A simple trace would tell me what queries are currently being used and it is likely that one of those could be altered to return the counts without much performance impact, since no additional queries would be required.  However, I have rotten luck with 2.0.4 and I'm looking forward to 3.0.0.  If I can get 3.0.0 working, I'll take another look at this.
 
New Post
1/17/2007 8:23 PM
 

Thanx Jon,

I'll try out your sql and see how it goes.  If teh impact isnt noticeable then Ill add it as an enhancement in the next release.


Philip Beadle - Employee
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsHelpHelpTutorial CountTutorial Count


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out