title: Should I use a text file or Database?
body: <p>So I'm putting together an RSS parser which will process an RSS feed, filter it, and then download the matched items. Assume that the files being downloaded are legal torrent files.</p>
  
  <p>Now I need to keep a record of the files that I have already downloaded, so they aren't done again.</p>
  
  <p>I've already got it working with SQLite (create database if not exists, insert row if a select statement returns nothing), but the resulting jar file is 2.5MB+ (due to the sqlite libs).</p>
  
  <p>I'm thinking that if I use a text file, I could cut down the jar file to a few hundred kilobytes.</p>
  
  <p>I could keep a list of the names of files downloaded - one per line - and reading the whole file into memory, search if a file exists, etc. </p>
  
  <p>The few questions that occur to me know: </p>
  
  <ul>
  <li>Say if 10 files are downloaded a day, would the text file method end
  up taking too much resources?</li>
  <li>Overall which one is faster</li>
  </ul>
  
  <p>Anyway, what do you guys think? I could use some advice here, as I'm still new to programming and doing this as a hobby thing :)</p>