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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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.DNNSpired.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
1165 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.DNNSpired.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
1165 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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com
ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com

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