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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Any limit to subscribers in one portal?Any limit to subscribers in one portal?
Previous
 
Next
New Post
3/27/2009 7:52 PM
 

Have you tried a rebuild/reorganized of the current DNN indexes in tables Users, UserRole, UsersPortal and UsersProfiles  We have several thousand users across several portals within the instance of DNN4.9.2  These indexes are repeatively reported by the Index Physical Statistic as "Recommend Action -Rebuild"    

 

boinac wrote
 

Jeff, thanks for your reply!, I add more information for this post...

I have this architecture:

1.- WEB server: Intel Xeon 2 Ghz - 4 Gb RAM - IIS 6.0 - Win 2003 Server
2.- SQL server: Intel Xeon 2 Ghz - 4 Gb RAM - Ms SQL 2005 - Win 2003 Server
Internet broadBand: 2 Mb.-

Can you help me to find out the best configuration of the IIS for this site and wich index need to add (some example)?

Please let me know.

Thanks a lot again!

 


Incredible PeopleWare.Canada
 
New Post
3/28/2009 10:45 AM
 

Dave, Thanks a lot for your response, when you talk about of rebuild/reorganized the DNN index, are you talking about of the SP mentioned in the previus post? or you have some other things to do? can you share with me how can do that?

I am still waiting your response.

Thanks again.-

 
New Post
3/29/2009 3:11 PM
 

Hi,  I'm referring to your response to Jeff Cochan's suggestion and comments which included "  Simply adding indexes to SQL tables can help.  Maximizing memopry and CPU availability helps.  Reducing the load of other applications, running SQL on a separate server, etc."

Do you have access to your SQL Environment, such as SQL Server Management Studio(SSIS).  Ifso, you can request a report on the database indexes.  The report on indexes is found by right-clicking on the highlighted subject database, select Reports>Standard Reports>Index Physical Statistics.  Depending the size of database and the local environment, the report creation may take a few moments.   Afterwards, you can view the list of tables with their corresponding index(es).  Locate the User related tables and examine the Operation Recommend - action column.  I'm interested in any results you can share.  Our User related table indexes are repeatively reported as Operation Recommended - Rebuild.

 

 

QUOTE]boinac wrote
 

Dave, Thanks a lot for your response, when you talk about of rebuild/reorganized the DNN index, are you talking about of the SP mentioned in the previus post? or you have some other things to do? can you share with me how can do that?

I am still waiting your response.

Thanks again.-

[/QUOTE]


Incredible PeopleWare.Canada
 
New Post
3/30/2009 8:34 PM
 

Dave, Thanks a lot for your suggestions, i am attaching the results (download the file from here: http://www.materna.com.ar/archivos/indexes_BD.zip) of the following query:

SELECT * FROM sys.dm_db_index_physical_stats

(

DB_ID(N'materna_argentina'), null , NULL, NULL , null)

Please let me know your comments to see what is the next step to do. Thanks again.

 
New Post
4/7/2009 1:48 AM
 

Hi boinac,  several of the indexes are highly fragmented exceeding 50%   You may want to run index rebuild or reorganizing.  This is an example script we use for our envirnoment.  Perhaps this whereis as is example is help for yours.   

-- Ensure a USE <databasename> statement has been executed first.


USE [Your DNN Portal]
SET NOCOUNT ON;
DECLARE @objectid int;
DECLARE @indexid int;
DECLARE @partitioncount bigint;
DECLARE @schemaname nvarchar(130);
DECLARE @objectname nvarchar(130);
DECLARE @indexname nvarchar(130);
DECLARE @partitionnum bigint;
DECLARE @partitions bigint;
DECLARE @frag float;
DECLARE @command nvarchar(4000);
-- Conditionally select tables and indexes from the sys.dm_db_index_physical_stats function
-- and convert object and index IDs to names.
SELECT
    object_id AS objectid,
    index_id AS indexid,
    partition_number AS partitionnum,
    avg_fragmentation_in_percent AS frag
INTO #work_to_do
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL , NULL, 'LIMITED')
WHERE avg_fragmentation_in_percent > 10.0 AND index_id > 0;


DECLARE partitions CURSOR FOR SELECT * FROM #work_to_do;


OPEN partitions;


WHILE (1=1)
    BEGIN;
        FETCH NEXT
           FROM partitions
           INTO @objectid, @indexid, @partitionnum, @frag;
        IF @@FETCH_STATUS < 0 BREAK;
        SELECT @objectname = QUOTENAME(o.name), @schemaname = QUOTENAME(s.name)
        FROM sys.objects AS o
        JOIN sys.schemas as s ON s.schema_id = o.schema_id
        WHERE o.object_id = @objectid;
        SELECT @indexname = QUOTENAME(name)
        FROM sys.indexes
        WHERE  object_id = @objectid AND index_id = @indexid;
        SELECT @partitioncount = count (*)
        FROM sys.partitions
        WHERE object_id = @objectid AND index_id = @indexid;

-- 30 is an arbitrary decision point at which to switch between reorganizing and rebuilding.
        IF @frag < 30.0
            SET @command = N'ALTER INDEX ' + @indexname + N' ON ' + @schemaname + N'.' + @objectname + N' REORGANIZE';
        IF @frag >= 30.0
            SET @command = N'ALTER INDEX ' + @indexname + N' ON ' + @schemaname + N'.' + @objectname + N' REBUILD PARTITION = ALL WITH ( PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, ONLINE = OFF, SORT_IN_TEMPDB = OFF, DATA_COMPRESSION = NONE )';
        IF @partitioncount > 1
            SET @command = @command + N' PARTITION=' + CAST(@partitionnum AS nvarchar(10));
        EXEC (@command);
        PRINT N'Executed: ' + @command;
    END;

-- Close and deallocate the cursor.
CLOSE partitions;
DEALLOCATE partitions;

-- Drop the temporary table.
DROP TABLE #work_to_do;
GO

 

#######

 

Cheers,


Incredible PeopleWare.Canada
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Any limit to subscribers in one portal?Any limit to subscribers in one portal?


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