Most effective way of storing data

Discussion in 'Databases' started by indianseocompany, Sep 28, 2011.

  1. #1
    I am in need of storing huge amount of data for one of my project on regular basis. I have planned to use xml structure while storing data in my server and every time a new data is found it will be added into the xml tree.

    Now, the problem is i have a search application that runs on the basis of those data. So i just need suggestion that is it wise to run the search based on XML data(stored in separate folders on server) through server side script like PHP or should i store those data in my database and runs the search through query?

    Please keep in mind that execution time is very important?
     
    indianseocompany, Sep 28, 2011 IP
  2. RonBrown

    RonBrown Well-Known Member

    Messages:
    934
    Likes Received:
    55
    Best Answers:
    4
    Trophy Points:
    105
    #2
    If it's all about execution time then there's no comparison between a properly optimized and indexed database and XML files. While your database will maintain good levels of performance as the data set gets bigger, the XML structure will get slower and slower as time goes on and more data is added to it.
     
    RonBrown, Sep 28, 2011 IP
  3. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #3
    A well designed indexed relational database will find records in less than a second even with millions of records. Look at Google with BILLIONS of records - Always takes less than a second to find anything.

    Any other form of storage like XML, flat database, or whatever, gets slower and slower as it gets larger.
     
    mmerlinn, Sep 29, 2011 IP
  4. signorm68

    signorm68 Well-Known Member

    Messages:
    984
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    use database, everything that have more tan 1000 records needs database because of speed that you need
     
    signorm68, Oct 17, 2011 IP
  5. b2tang

    b2tang Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Databse is the key method for storing huge amount of date, mysql is a good open source datebase system.
     
    b2tang, Oct 18, 2011 IP
  6. kellyphong

    kellyphong Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    1. Use database but efficiently, its your friend.
    2. Break ER (Entity Relationship) where required
    3. Use Indexes and regularly (may be daily and/or weekly ) re-index your data. It will keep your database optimized
    4. Use good hardware
    5. Use enough ram
     
    kellyphong, Oct 31, 2011 IP