DNN Forum Module Maintenance

Last post 07-18-2006 8:11 AM by atlantic. 2 replies.

Sort Posts:

  • DNN Forum Module Maintenance

    07-12-2006, 11:13 AM
    • Member
      10 point Member
    • atlantic
    • Member since 07-12-2006, 11:07 AM
    • Posts 2

    I have a site running on DNN 3.2.2, the most used module is "forum", it has been a while the site is running and the size of DB is getting bigger and bigger, since I have limitation imposed by my web host so I am wondering if we have a way to remove the forum posts which are old, say about 6 months old.   Since the site targets latest stuff so removing old posts and replies would be fine.  Now my question is;

    1) Is there any such option for DNN administrator or host to remove old postings to free up space ?

    2) If not, how can we do it thru DB directly ? any hints…… I understand there will be whole lot of Foreign Keys here and there so removing entries directly from tables is not as safe unless you have idea of complete schema…..may be someone has made a script for such task.

    Please advice.

  • Re: DNN Forum Module Maintenance

    07-13-2006, 3:49 AM
    • Member
      215 point Member
    • lemlar
    • Member since 11-28-2002, 3:20 PM
    • Posts 43
    Log in to www.dotnetnuke.com, press forum and ask your question on the dedicated project forum for the forum module there. There is a bigger chance to get good answer there.

    Lars
  • Re: DNN Forum Module Maintenance

    07-18-2006, 8:11 AM
    • Member
      10 point Member
    • atlantic
    • Member since 07-12-2006, 11:07 AM
    • Posts 2

    Thanks lemlar, I finally found a workaround.....

    1) Run query on table forum_posts where createddate < xdate and parentpost = 0

    where xdate is the date from which you want to keep the posts

    2) Then call the SP dbo.Forum_PostDelete once for every post_id that you received from query in step # 1

    NOTE: please check the exact spellings for field names in table forum_posts

     

     

Page 1 of 1 (3 items)