When to use Database

This is a discussion on When to use Database within the Tech Board forums, part of the Community Boards category; I can serialize my data to harddisk. How can I know it is time to use a database to store ...

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,236

    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
    Location
    The edge of the known universe
    Posts
    32,820
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 06:19 AM
  3. Database
    By cyberbjorn in forum C++ Programming
    Replies: 10
    Last Post: 04-14-2004, 08:22 AM
  4. Database
    By niroopan in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2002, 05:14 PM
  5. Replies: 1
    Last Post: 10-09-2001, 11:20 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21