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  |  

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


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
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
 


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
28 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
14222 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
28 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
520 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
28 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.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

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