Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Help Module [Le...  Tutorial Count
Previous Previous
 
Next Next
New Post 10/14/2006 8:53 PM
User is offline Mike
10 posts
www.cybreze.com
10th Ranked


Tutorial Count 

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 5:05 PM
User is offline Philip Beadle
1142 posts
www.philipbeadle.net
6th Ranked








Re: Tutorial Count 
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 (DNN Core Team)
My Blog
My DNN Blog
TDD DNN Module Template
 
New Post 1/16/2007 5:51 PM
User is offline Mike
10 posts
www.cybreze.com
10th Ranked


Re: Tutorial Count 

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 6:03 PM
User is offline Jon
84 posts
10th Ranked


Re: Tutorial Count 
 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 4:23 PM
User is offline Philip Beadle
1142 posts
www.philipbeadle.net
6th Ranked








Re: Tutorial Count 

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 (DNN Core Team)
My Blog
My DNN Blog
TDD DNN Module Template
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Help Module [Le...  Tutorial Count
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP