Added: 2 years ago
From: aceoft
Views: 617
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Just few notes ... you are using way too many DB accesses to get that data. 1) Get NodeID, 2) Get the node data and convert it to object (very expensive), 3) Get the Document itself. You can do all this with just single GetDocuments call like this:

    DataSet ds = TreeHelper.GetDocuments(CMSCon­text.CurrentSiteName, "/%", culture, className, "NodeGUID = '" + nodeGuid + "'", null, -1, true, 0);

    string content = (string)ds.Tables[0].Rows[0]["­Content"];

    This way you save the most of overhead.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more