vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Prune threads to flat files... (https://vborg.vbsupport.ru/showthread.php?t=68801)

Sal Collaziano 08-28-2004 02:25 AM

Prune threads to flat files...
 
In an effort to keep a large database from growing far too large - I'd like to have a system in place that moves old discussions that haven't been replied to in XXX amount of days - into a flat HTML file.

I never prune messages. At my forums, people cringe at the thought of deleting our "history". Is there any possibility of this becoming a reality?

SandsUSA 08-28-2004 02:43 PM

Quote:

Originally Posted by Sal Collaziano
In an effort to keep a large database from growing far too large - I'd like to have a system in place that moves old discussions that haven't been replied to in XXX amount of days - into a flat HTML file.

I never prune messages. At my forums, people cringe at the thought of deleting our "history". Is there any possibility of this becoming a reality?

Yes, I've been looking for something like that - especially if it can run as a CRON job...

Sal Collaziano 08-28-2004 08:35 PM

Quote:

Originally Posted by SandsUSA
Yes, I've been looking for something like that - especially if it can run as a CRON job...

I'm glad I'm not the only one who thinks this is a good idea.. Hopefully others will chime in, positively, as well..

Anybody else out there?

SandsUSA 08-28-2004 08:51 PM

Quote:

Originally Posted by Sal Collaziano
I'm glad I'm not the only one who thinks this is a good idea.. Hopefully others will chime in, positively, as well..

Anybody else out there?

I'm sure there are issues like rights to see messages (it doesn't matter to me), each thread in a file or threads appended to a single file or single file per forum etc. The main thing for me is to make my database smaller since all the static "historical" threads are gone but not ir-retrieavable.

The "Show Printable Version" is almost perfect if it could be done based on a query and handle multiple threads...

Reeve of shinra 08-29-2004 12:48 AM

It might be simpler and better to have 'old' threads moved to a different database. I think it would add queries but it would at least keep the primary db smaller and faster and keep the archive dynamic and searchable. Since not many people search old threads anyway, the cost of the extra queries may not be too bad considering.

Sal Collaziano 08-29-2004 11:16 AM

That might not be a bad idea, Reeve of Shinra..

And regarding the 'rights' issue, maybe the flat html files could be located within the forum they were archived from - somehow. I'm not too sure how PHP and MySQL work so I don't know the limitations. But if they could be stored in the same area as the forum with the permissions they have to see them - it would be okay...

SandsUSA 08-29-2004 01:35 PM

Quote:

Originally Posted by Sal Collaziano
That might not be a bad idea, Reeve of Shinra..

And regarding the 'rights' issue, maybe the flat html files could be located within the forum they were archived from - somehow. I'm not too sure how PHP and MySQL work so I don't know the limitations. But if they could be stored in the same area as the forum with the permissions they have to see them - it would be okay...

That's fine if you want to have them searchable through "normal" searches... But personally, I'd like it completely exported to external files. That way, I could ZIP them up and allow them for download (maybe the download link in the forum home page for each formum). If a user wants to search, let 'em download the zip and use text searches.

I know this topic comes up now and again, and nobody wants to do it :), but my database can't grow forever! Right now, I'm selectively pruning and that's a pain - not to mention NO archived threads is FAR worse than download/text-searching.

Xenon 08-29-2004 01:44 PM

Logician already wrote a hack to download threads as plain text.

Ok it doesn't look good if it's plain text, but the important things are there...

amykhar 08-29-2004 02:03 PM

People have been begging for this hack for years because it will allow people with smaller budgets to store archived threads on a free web host. I'm surprised Jelsoft hasn't built it in yet given that so many of their customers are small-budget hobbyists.

Amy


All times are GMT. The time now is 09:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01099 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete