Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database access question in SCJD Test

 
Daniel D. Guo
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing a DB access module for my SCJD test. Should this program read all the data in memory and keep them there as long as the server is running? Or should it always search on the disk?

I really appreciate it!

Dan
 
Ailsa Cape
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Daniel

If your instructions never prohibit you from reading all records in memory, then you can use cache definitely. In my design, I do read all records from the file located in the disk to memory when my program is running. After every database operation(updating, deleting or creating) I made the cache and the disk changing simultaneously.

Hope this would be helpful.

Regards,Ailsa Cape
 
Daniel D. Guo
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ailsa,

Thanks a lot!

Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic