I think you would find it advantageous to at least store the most important header information (Subject, Date, Author, possibly threading info) in a database.

You're bound to need searching for that specific piece of news some time later. The more news there is likely to be, the less efficient will it be to search through a bunch of unindexed files.

Also note that if you have the whole article in a MySQL database, you can enable full text searching over the article, which can also come in handy.

And I don't believe that storing articles in a database is going to eat that much more space than storing it in individual files would have.(Unless you compressed the files, which would make searching through them even more difficult.

Consider this: Diskspace is cheap and getting cheaper every year. Your time isn't.


In reply to Re: Large News Database by matija
in thread Large News Database by perleager

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.