Menu

database vs files ?

luc abom
2000-06-22
2012-10-11
  • luc abom

    luc abom - 2000-06-22

    what are the benefit to have a database rather than the simple files , in the wiki case '?

     
    • Steve Wainstead

      Steve Wainstead - 2000-06-22

      Actually there are a few.

      Pros of a relational database like MySQL or Postgresql:

      data is in tables and normalized (mostly :-)

      a variety of new pages are easier to implement (like Top Ten Most Edited)

      as the Wiki grows, performance will be better

      DBM files have a built-in memory leak, so they grow disproportional to their content

      and they are a more flexible data store, all around

      The disadvantages:

      a DBM based Wiki is simpler

      it requires no installation or administration. Relational DB's are complex

      it doesn't require SQL

      everything is stored as a serialized data structure, so in some respects it's easier to extend a DBM based Wiki than a relational one (just add more keys to the hash)

      Overall, it's a fair tradeoff. I think it's important to give users choice, and one of the first requests after 1.0 came out was support for a RDBMS. Since the data store is kind of abstracted away, it wasn't hard at all to make this change.

      My goal is support for DBM, mSQL, MySQL and Postgresql (only mSQL left at this point, 1.1.6 will support the other three).

      sw

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.