Thread: When to use Database

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006

    When to use Database

    I can serialize my data to harddisk. How can I know it is time to use a database to store my data?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    All sorts of possible reasons:
    - you get fed up of maintaining your serialisers
    - the data is accessed by more than one program (say back office update and web-facing query written in PHP)
    - the data is accessed by more than one machine (or machine architecture)
    - the data becomes so large that simple files no longer scale efficiently
    - the data has lots of internal relationships (eg customers and orders)
    - you find yourself writing ad-hoc query languages to search your data
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Also keep in mind that "a database" doesn't necessarily mean a separate entity on your network. If you're not familiar with embedded databases like Berkeley DB or Sqlite, take a look. They're a very lightweight way to get many of the benefits Salem mentioned without a lot of extra set up.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Database to Database Transfer?
    By draggy in forum C++ Programming
    Replies: 4
    Last Post: 01-17-2007, 10:50 AM
  2. database
    By sevenup in forum C++ Programming
    Replies: 2
    Last Post: 05-14-2004, 05:19 AM
  3. Database
    By cyberbjorn in forum C++ Programming
    Replies: 10
    Last Post: 04-14-2004, 07:22 AM
  4. Database
    By niroopan in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2002, 04:14 PM
  5. Replies: 1
    Last Post: 10-09-2001, 10:20 PM

Tags for this Thread