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  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Optimizing DNN - Installing Modules
Previous Previous
 
Next Next
New Post 6/4/2008 11:46 PM
Resolved
User is offline crowland
19 posts
10th Ranked


Optimizing DNN - Installing Modules 

Hi,

Will a site be faster if unused modules are not installed?

Thanks,

Charlie

 
New Post 6/5/2008 2:16 AM
User is offline Sebastian Leupold
13706 posts
www.deutschnetnuke.de
1st Ranked












Re: Optimizing DNN - Installing Modules 

it will compile quicker (faster page load after app recycle) and use less memory.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 6/5/2008 8:18 AM
User is offline crowland
19 posts
10th Ranked


Re: Optimizing DNN - Installing Modules 

That is what I suspected. Is there an easy way to tell which modules are being used? (someone else built the site for me)

Thank you very much!

Charlie

 

 
New Post 6/5/2008 10:37 AM
Accepted Answer 
User is offline Carlos Rodriguez
512 posts
www.almacigo.com
8th Ranked


Re: Optimizing DNN - Installing Modules 

Crowland:

There is no easy, built-in way to find out what modules are in use (hint to the core team, hint to the core team).

However, if you are not afraid of semi-complex SQL queries, try the ones below from your Host account, or directly to the server if you have that kind of access.  I have to say that I cannot take credit for these queries, I have collected them from different places over time. 

Here they are, have fun.

-- Query to just get the count of the modules used.
select
b.FriendlyName ModuleFriendlyName
,count(d.tabid) Occurs
from modules a
join moduledefinitions b on b.moduledefid = a.moduledefid
join TabModules c on c.ModuleID = a.ModuleID
join Tabs d on d.TabID = c.TabID
join Portals e on e.PortalID = a.PortalID
group by
b.FriendlyName
order by
b.FriendlyName

-- Query to get listing of modules per tab
SELECT m.ModuleID
,t.tabname
,tm.panename
,m.ModuleTitle
,dm.modulename
,dm.friendlyname
,m.PortalID
FROM [Modules] m
join [ModuleDefinitions] md
on (m.moduledefid = md.moduledefid)
join [Desktopmodules] dm
on (md.desktopmoduleid = dm.desktopmoduleid)
join [tabmodules] tm
on (m.moduleid = tm.moduleid)
join [tabs] t
on (t.tabid = tm.tabid)
--ORDER BY t.tabid, md.moduledefid
ORDER BY m.PortalID,tm.panename, t.tabname

--Another query to find modules in use
SELECT DM.ModuleName, DM.FriendlyName,
(SELECT COUNT(*) FROM Modules WHERE ModuleDefId = MD.ModuleDefId)
AS 'TotalInstances', (SELECT COUNT(*) FROM Modules WHERE ModuleDefId = MD.ModuleDefId AND IsDeleted = 1) AS 'RecycleBinInstances' FROM DesktopModules DM
INNER JOIN ModuleDefinitions MD ON DM.DesktopModuleID = MD.DesktopModuleID GROUP BY DM.ModuleName, DM.Friendlyname, MD.ModuleDefId ORDER BY 'TotalInstances'

--This SQL statement returns the pages in all portals which my installed modules are being used on:
SELECT TOP 100 PERCENT dbo.DesktopModules.DesktopModuleID, dbo.DesktopModules.FriendlyName, dbo.ModuleDefinitions.ModuleDefID, dbo.Modules.ModuleID, dbo.Modules.ModuleTitle, dbo.Modules.AllTabs, dbo.Modules.PortalID, dbo.Tabs.ParentId, dbo.Tabs.TabID, dbo.Tabs.TabName, dbo.Tabs.Title
FROM dbo.TabModules INNER JOIN dbo.Modules
ON dbo.TabModules.ModuleID = dbo.Modules.ModuleID
INNER JOIN dbo.Tabs ON dbo.TabModules.TabID = dbo.Tabs.TabID
INNER JOIN dbo.ModuleDefinitions ON dbo.Modules.ModuleDefID = dbo.ModuleDefinitions.ModuleDefID
INNER JOIN dbo.DesktopModules ON dbo.ModuleDefinitions.DesktopModuleID = dbo.DesktopModules.DesktopModuleID
WHERE (dbo.DesktopModules.FriendlyName = 'Reports')
ORDER BY dbo.DesktopModules.DesktopModuleID, dbo.Tabs.TabName

--This SQL statement returns which installed modules are NOT being used:
SELECT TOP 100 PERCENT dbo.DesktopModules.DesktopModuleID, dbo.DesktopModules.FriendlyName, dbo.DesktopModules.Version, dbo.DesktopModules.IsPremium FROM dbo.Modules
INNER JOIN dbo.TabModules ON dbo.Modules.ModuleID = dbo.TabModules.ModuleID
INNER JOIN dbo.ModuleDefinitions ON dbo.Modules.ModuleDefID = dbo.ModuleDefinitions.ModuleDefID
RIGHT OUTER JOIN dbo.DesktopModules ON dbo.ModuleDefinitions.DesktopModuleID = dbo.DesktopModules.DesktopModuleID
WHERE (dbo.DesktopModules.IsAdmin = 0)
GROUP BY dbo.DesktopModules.DesktopModuleID, dbo.DesktopModules.FriendlyName, dbo.DesktopModules.Version, dbo.DesktopModules.IsPremium
HAVING (COUNT(dbo.TabModules.TabID) = 0)
ORDER BY dbo.DesktopModules.FriendlyName

Carlos

 

 
New Post 6/7/2008 3:32 PM
User is offline crowland
19 posts
10th Ranked


Re: Optimizing DNN - Installing Modules 

Thanks, Carlos. I will try them.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Install It!  Optimizing DNN - Installing Modules
 


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.

 


Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com

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