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. Other Discussions
  3. IT & Infrastructure
  4. Database Access

Database Access

Scheduled Pinned Locked Moved IT & Infrastructure
databasegraphicsperformancequestiondiscussion
2 Posts 2 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.
  • R Offline
    R Offline
    romuzu
    wrote on last edited by
    #1

    We are developing an application that connects to a database. Can anybody tell me which is better on database access? First, One time access to the database(loads all database contents to a to a vector or recordset) then update the changes to the database whenever necessary. This is usually done on the application start-up.Second option is to load database contents(data which is only needed for a particular dialog) then update database when there are changes. For me the second option is better because it does not consume much memory resources and only the needed data are accessed whenever needed. What do you think guys?

    C 1 Reply Last reply
    0
    • R romuzu

      We are developing an application that connects to a database. Can anybody tell me which is better on database access? First, One time access to the database(loads all database contents to a to a vector or recordset) then update the changes to the database whenever necessary. This is usually done on the application start-up.Second option is to load database contents(data which is only needed for a particular dialog) then update database when there are changes. For me the second option is better because it does not consume much memory resources and only the needed data are accessed whenever needed. What do you think guys?

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Second option off course. Why would you wan't to have the whole database in the memory. You already have the SQL server that stores the data for you... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      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