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

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...DNN Search very slow after bugfix 14543DNN Search very slow after bugfix 14543
Previous
 
Next
New Post
6/10/2012 8:15 PM
 
Hi,Ik noticed the standard DNN Search on my DNN community version 06.01.03 was very slow, compared to another DNN installation.After much digging I found the difference between the versions lying in the SP "GetSearchResultsByWord".There seems to have been a bugfix:/* Fix bug 14543: Update GetSearchResultsByWord to exclude deleted tab modules*/It modyfies the SP to include the clause "AND (tm.IsDeleted = 0)"When I remove this clause again, the SP runs a 100 times faster!!I understand that the clause needs to be added again, but does anyone know why it is such a performance killer?Thanks in advance!RikBelow I pasted a copy the SP [GetSearchResultsByWord] SELECT si.SearchItemID, sw.Word, siw.Occurrences, siw.Occurrences + 1000 AS Relevance, m.ModuleID, tm.TabID, si.Title, si.Description, si.Author, si.PubDate, si.SearchKey, si.Guid, si.ImageFileId, u.FirstName + ' ' + u.LastName As AuthorName, m.PortalId FROM dbo.SearchWord sw INNER JOIN dbo.SearchItemWord siw ON sw.SearchWordsID = siw.SearchWordsID INNER JOIN dbo.SearchItem si ON siw.SearchItemID = si.SearchItemID INNER JOIN dbo.Modules m ON si.ModuleId = m.ModuleID LEFT OUTER JOIN dbo.TabModules tm ON si.ModuleId = tm.ModuleID LEFT JOIN dbo.TabModuleSettings tms ON tms.TabModuleID = tm.TabModuleID AND tms.SettingName = 'DisableSearch' INNER JOIN dbo.Tabs t ON tm.TabID = t.TabID LEFT OUTER JOIN dbo.Users u ON si.Author = u.UserID WHERE (((m.StartDate Is Null) OR (GetDate() > m.StartDate)) AND ((m.EndDate Is Null) OR (GetDate() < m.EndDate))) AND (((t.StartDate Is Null) OR (GetDate() > t.StartDate)) AND ((t.EndDate Is Null) OR (GetDate() < t.EndDate))) AND (sw.Word = @Word) AND (t.IsDeleted = 0) AND (m.IsDeleted = 0) AND (tm.IsDeleted = 0) -- This is the performance killer!! AND (t.PortalID = @PortalID) AND (tms.TabModuleID is NULL) ORDER BY Relevance DESC
 
New Post
6/11/2012 7:53 AM
 
please log it as a bug to support.dotnetnuke.com - the logic appears correct but we may need to rewrite the query to use more efficent sql or else add some indexes to improve performance.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...DNN Search very slow after bugfix 14543DNN Search very slow after bugfix 14543


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