# |
Seconds Since First Hit |
Trace |
Command Type |
Command Text |
Parameters |
Execution Time |
1. |
0 |
DBInterface.GetDataTable; VirtualCatalogInfo.LoadVirtualCatalog; VirtualCatalogInfo..ctor; Common.GetSiteID; show |
StoredProcedure |
[dbo].[VirtualCatalogLoadBySiteDomain] |
@SiteDomain=schuremeddev.braveriversolutions.com
|
0 |
2. |
0 |
DBInterface.get_oSQLDataReader; VirtualSiteProperties.GetVirtualSiteProperties; VirtualSiteProperties..ctor; VirtualCatalogInfo.LoadVirtualCatalog; show |
StoredProcedure |
[dbo].[VirtualSitePropertiesLoadBySiteID] |
@SiteID=1
|
0 |
3. |
0.5612368 |
DBInterface.GetDataTable; HTMLContent.GetHTMLContent; HTMLContent..ctor; FormSubmissionManager.InitializeTracking; show |
Text |
SELECT TOP(1) HTMLArticles.ID AS ArticleID, HTMLContent.ID, PageTitle, PageMetaDesc, PageMetaKwords, PageHeading, PageContent, PageContent2, PageContent3, PageContent4, PageContent5, PageContent6, StartDate, EndDate, HTMLContent.Thumbnail, NumLatestArticles, HasArticles, UserControl, COALESCE(PageLayout,0) As PageLayout FROM HTMLContent LEFT OUTER JOIN HTMLArticles ON HTMLContent.ID = HTMLArticles.ContentID WHERE HTMLContent.SiteID = 1 AND PageKey = '/about-us/default.aspx' show |
- |
0.0156272 |
4. |
0.5992317 |
DBInterface.GetDataTable; PageManager.LoadMiscContent; PageManager.get_MiscContent; MasterPage.Page_Load; show |
StoredProcedure |
Content_LoadMiscContent |
- |
0 |
5. |
0.5992317 |
DBInterface.GetDataTable; HTMLContent.GetHTMLContent; HTMLContent..ctor; MasterPage.get_HtmlContent; show |
Text |
SELECT TOP(1) HTMLArticles.ID AS ArticleID, HTMLContent.ID, PageTitle, PageMetaDesc, PageMetaKwords, PageHeading, PageContent, PageContent2, PageContent3, PageContent4, PageContent5, PageContent6, StartDate, EndDate, HTMLContent.Thumbnail, NumLatestArticles, HasArticles, UserControl, COALESCE(PageLayout,0) As PageLayout FROM HTMLContent LEFT OUTER JOIN HTMLArticles ON HTMLContent.ID = HTMLArticles.ContentID WHERE HTMLContent.SiteID = 1 AND PageKey = '/about-us/default.aspx' show |
- |
0 |
6. |
0.6148562 |
DBInterface.GetDataTable; HTMLContent.GetHTMLMiscContent; MasterPage.Page_Load; Control.OnLoad; show |
Text |
SELECT TOP(1) ID, Content FROM HTMLMiscContent WHERE SiteID = 1 AND ContentKey = 'Header - Alert Bar' show |
- |
0 |
7. |
0.6304814 |
DBInterface.GetDataTable; PageManager.LoadPageLinks; PageManager.get_PageLinks; HTMLContent.GetHTMLHeaderLinks; show |
StoredProcedure |
Content_LoadPageLinks |
- |
0 |
8. |
0.6624984 |
DBInterface.GetDataTable; Menu.GetMenuContent; Menu.get_MenuContent; MasterPage.Page_Load; show |
Text |
DECLARE @StartingID INT;
SET @StartingID = 0;
DECLARE @Tree TABLE(TreeID INT IDENTITY PRIMARY KEY, Level INT, ParentTreeID INT, [Path] VARCHAR(2000), PageID_Path VARCHAR(2000), PageID INT NOT NULL);
DECLARE @RowCount INT, @Level INT, @DelCount INT;
SET NOCOUNT ON;
SET @Level = 0;
INSERT INTO @Tree(PageID, Level) VALUES (@StartingID, @Level);
SET @RowCount = @@ROWCOUNT;
UPDATE @Tree SET Path = STR(TreeID, 10, 0) + '.', PageID_Path = CAST(PageID AS VARCHAR(10)) + '\';
WHILE @RowCount > 0
BEGIN
SET @Level = @Level + 1;
INSERT INTO @Tree(Level, ParentTreeID, PageID)
SELECT @Level, t.TreeId, PageURLs.ID
FROM PageURLs
LEFT OUTER JOIN @Tree t ON ISNULL(PageURLs.ParentID,0) = t.PageID AND t.Level = (@Level - 1)
INNER JOIN HTMLContent ON HTMLContent.ID = PageURLs.EntityID
LEFT OUTER JOIN HTMLContent_XREF ON HTMLContent.ID = HTMLContent_XREF.ContentID
WHERE 1=1
AND (
1=1
AND HTMLContent.SiteID = 1
AND PageURLs.[Type] = 'content'
AND HTMLContent.IsMenuItem = 'True'
AND @Level <= 20
)
ORDER BY COALESCE(OrderPriority, 1000), PageKey
;
SET @RowCount = @@ROWCOUNT;
UPDATE t1 SET t1.[Path] = t2.[Path] + STR(t1.TreeID, 10, 0) + '.', t1.PageID_Path = t2.PageID_Path + CAST(t1.PageID AS VARCHAR(10)) + '\' FROM @Tree t1 INNER JOIN @Tree t2 ON t1.ParentTreeID = t2.TreeID WHERE t1.Level = @Level AND t2.PageID_Path NOT LIKE '%' + CAST(t1.PageID AS VARCHAR(10)) + '\%';
DELETE FROM @Tree WHERE PageID_Path IS NULL;
SET @DelCount = @@ROWCOUNT;
SET @RowCount = (@RowCount - @DelCount);
END;
SELECT
[Path], t.PageID, t.Level
, (SELECT COUNT(HTMLContent_XREF1.ID) FROM HTMLContent_XREF AS HTMLContent_XREF1 LEFT JOIN HTMLArticles AS HTMLArticles1 ON HTMLContent_XREF1.ContentID = HTMLArticles1.ContentID LEFT JOIN HTMLContent AS HTMLContent1 ON HTMLContent1.ID = HTMLContent_XREF1.ContentID WHERE HTMLContent_XREF1.ParentContentID = HTMLContent.ID AND (HTMLContent1.IsMenuItem = 'True' OR HTMLContent1.ID IS NULL) AND HTMLArticles1.ID IS NULL) As NumChildren,
HTMLContent.ID,
HTMLContent.PageKey,
HTMLContent.IsMenuItem,
HTMLContent.MenuText,
HTMLContent.MenuURL,
HTMLContent.PageHeading,
HTMLContent.HasArticles,
HTMLContent_XREF.ParentContentID
FROM @Tree t
INNER JOIN PageURLs ON t.PageID = PageURLs.ID
INNER JOIN HTMLContent ON HTMLContent.ID = PageURLs.EntityID
LEFT OUTER JOIN HTMLContent_XREF ON HTMLContent.ID = HTMLContent_XREF.ContentID
WHERE 1=1
ORDER BY [Path]
; show |
- |
0.0163924 |
9. |
0.6937799 |
DBInterface.GetDataTable; Menu.GetMenuContent; Menu.get_MenuContent; MasterPage.Page_Load; show |
Text |
DECLARE @StartingID INT;
SET @StartingID = 0;
DECLARE @Tree TABLE(TreeID INT IDENTITY PRIMARY KEY, Level INT, ParentTreeID INT, [Path] VARCHAR(2000), PageID_Path VARCHAR(2000), PageID INT NOT NULL);
DECLARE @RowCount INT, @Level INT, @DelCount INT;
SET NOCOUNT ON;
SET @Level = 0;
INSERT INTO @Tree(PageID, Level) VALUES (@StartingID, @Level);
SET @RowCount = @@ROWCOUNT;
UPDATE @Tree SET Path = STR(TreeID, 10, 0) + '.', PageID_Path = CAST(PageID AS VARCHAR(10)) + '\';
WHILE @RowCount > 0
BEGIN
SET @Level = @Level + 1;
INSERT INTO @Tree(Level, ParentTreeID, PageID)
SELECT @Level, t.TreeId, PageURLs.ID
FROM PageURLs
LEFT OUTER JOIN @Tree t ON ISNULL(PageURLs.ParentID,0) = t.PageID AND t.Level = (@Level - 1)
INNER JOIN HTMLContent ON HTMLContent.ID = PageURLs.EntityID
LEFT OUTER JOIN HTMLContent_XREF ON HTMLContent.ID = HTMLContent_XREF.ContentID
WHERE 1=1
AND (
1=1
AND HTMLContent.SiteID = 1
AND PageURLs.[Type] = 'content'
AND HTMLContent.IsMenuItem = 'True'
AND @Level <= 20
)
ORDER BY COALESCE(OrderPriority, 1000), PageKey
;
SET @RowCount = @@ROWCOUNT;
UPDATE t1 SET t1.[Path] = t2.[Path] + STR(t1.TreeID, 10, 0) + '.', t1.PageID_Path = t2.PageID_Path + CAST(t1.PageID AS VARCHAR(10)) + '\' FROM @Tree t1 INNER JOIN @Tree t2 ON t1.ParentTreeID = t2.TreeID WHERE t1.Level = @Level AND t2.PageID_Path NOT LIKE '%' + CAST(t1.PageID AS VARCHAR(10)) + '\%';
DELETE FROM @Tree WHERE PageID_Path IS NULL;
SET @DelCount = @@ROWCOUNT;
SET @RowCount = (@RowCount - @DelCount);
END;
SELECT
[Path], t.PageID, t.Level
, (SELECT COUNT(HTMLContent_XREF1.ID) FROM HTMLContent_XREF AS HTMLContent_XREF1 LEFT JOIN HTMLArticles AS HTMLArticles1 ON HTMLContent_XREF1.ContentID = HTMLArticles1.ContentID LEFT JOIN HTMLContent AS HTMLContent1 ON HTMLContent1.ID = HTMLContent_XREF1.ContentID WHERE HTMLContent_XREF1.ParentContentID = HTMLContent.ID AND (HTMLContent1.IsMenuItem = 'True' OR HTMLContent1.ID IS NULL) AND HTMLArticles1.ID IS NULL) As NumChildren,
HTMLContent.ID,
HTMLContent.PageKey,
HTMLContent.IsMenuItem,
HTMLContent.MenuText,
HTMLContent.MenuURL,
HTMLContent.PageHeading,
HTMLContent.HasArticles,
HTMLContent_XREF.ParentContentID
FROM @Tree t
INNER JOIN PageURLs ON t.PageID = PageURLs.ID
INNER JOIN HTMLContent ON HTMLContent.ID = PageURLs.EntityID
LEFT OUTER JOIN HTMLContent_XREF ON HTMLContent.ID = HTMLContent_XREF.ContentID
WHERE 1=1
ORDER BY [Path]
; show |
- |
0.0156277 |
10. |
0.7250224 |
DBInterface.GetDataTable; ContentPage.LoadContentByPageKey; ContentPage..ctor; PageLayoutController.Page_Load; show |
StoredProcedure |
Content_LoadByPageKey |
@PageKey=/about-us/default.aspx @SiteID=1
|
0.0156247 |
11. |
0.8506765 |
DBInterface.GetDataTable; ContentPage.LoadContentByPageKey; ContentPage..ctor; PageLayout5.Page_Load; show |
StoredProcedure |
Content_LoadByPageKey |
@PageKey=/about-us/default.aspx @SiteID=1
|
0 |
12. |
0.8662997 |
DBInterface.GetDataTable; HTMLContent.GetHTMLContent; HTMLContent..ctor; Breadcrumb.get_HtmlContent; show |
Text |
SELECT TOP(1) HTMLArticles.ID AS ArticleID, HTMLContent.ID, PageTitle, PageMetaDesc, PageMetaKwords, PageHeading, PageContent, PageContent2, PageContent3, PageContent4, PageContent5, PageContent6, StartDate, EndDate, HTMLContent.Thumbnail, NumLatestArticles, HasArticles, UserControl, COALESCE(PageLayout,0) As PageLayout FROM HTMLContent LEFT OUTER JOIN HTMLArticles ON HTMLContent.ID = HTMLArticles.ContentID WHERE HTMLContent.SiteID = 1 AND PageKey = '/about-us/default.aspx' show |
- |
0 |
13. |
0.8662997 |
DBInterface.GetDataTable; Breadcrumb.LoadBreadcrumb; Breadcrumb.Page_Load; Control.OnLoad; show |
StoredProcedure |
HTMLContentBreadcrumb |
SiteID=1 ContentID=37
|
0 |
14. |
0.8982095 |
DBInterface.GetDataTable; CartManager.LoadCartItems; CartManager.get_CartItems; MasterPage.UpdateCartTotals; show |
StoredProcedure |
[dbo].[Cart_LoadByUserID] |
@UserID=0ebf7f15-91ff-4cab-815f-afc2c659248b @SiteID=1
|
0 |
|
|
|
|
|
Total DB Execution Time |
0.063272 |