Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Database vs. RAM

Database vs. RAM

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestionvisual-studiodata-structures
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    blackbondi
    wrote on last edited by
    #1

    hi, what is better (faster), if i read some information from the database each time i need it? or if i read all the information i need and stock them into an array in the ram and close the connection to the Db. and so i access only that array if it necessary. thx

    M 1 Reply Last reply
    0
    • B blackbondi

      hi, what is better (faster), if i read some information from the database each time i need it? or if i read all the information i need and stock them into an array in the ram and close the connection to the Db. and so i access only that array if it necessary. thx

      M Offline
      M Offline
      Mohamad K Ayyash
      wrote on last edited by
      #2

      Well if the database is located on disk then disk access is alot slower than RAM access, but if th database is located in memory then it's related to the type of database and such details...etc. Hope this helps:)

      To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!

      B 1 Reply Last reply
      0
      • M Mohamad K Ayyash

        Well if the database is located on disk then disk access is alot slower than RAM access, but if th database is located in memory then it's related to the type of database and such details...etc. Hope this helps:)

        To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!

        B Offline
        B Offline
        blackbondi
        wrote on last edited by
        #3

        thank you for the answer, the database is located on disk, and its a ms access database

        D 1 Reply Last reply
        0
        • B blackbondi

          thank you for the answer, the database is located on disk, and its a ms access database

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Then it becomes a matter of which is faster: milliseconds or nanoseconds?


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          M 1 Reply Last reply
          0
          • D David Crow

            Then it becomes a matter of which is faster: milliseconds or nanoseconds?


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            M Offline
            M Offline
            Mohamad K Ayyash
            wrote on last edited by
            #5

            You are right but when it comes to tons of information and data, the difference will be seconds to even minutes!

            To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!

            D 1 Reply Last reply
            0
            • M Mohamad K Ayyash

              You are right but when it comes to tons of information and data, the difference will be seconds to even minutes!

              To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Mohamad K Ayash wrote:

              ...the difference will be seconds to even minutes!

              Doubtful.


              "A good athlete is the result of a good and worthy opponent." - David Crow

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups