Results 1 to 2 of 2

Thread: XML vs MySQL

  1. #1
    Join Date
    Aug 2011
    Location
    both, Germany and Bulgaria
    Posts
    54
    Thanks
    14
    Thanked 10 Times in 10 Posts

    Question XML vs MySQL

    Hi folks, I was thinking and wanted to ask:

    can I recommend using XML for small database solutions, which don't have to be updated, and just manually expanded, only when needed... or do I miss something??

    Cheers

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    do you need to search it?

    XML is exponentially slower than a database. I only use XML when:

    1) I never need to search for particular values,
    2) I never need to do much processing (sorting/ editing/ etc.)
    3) The data is always needed in the same (preferably raw) format

    even so, I usually use JSON in those situations (e.g., config files, sending data to javascript, etc.).
    If you're unsure, use the database.

  3. The Following User Says Thank You to traq For This Useful Post:

    XManBG (09-15-2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •