This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie quesitons (LRU Cache + more)

 
Tomas Varsavsky
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just passed the SCJP (93%) and have signed up for the SCJD. The assignment looks like a lot more work than I was expecting! I'm sorry if the following question has been discussed to death, I did a search and found lots of discussions but no definitive answer.

Is it ok for the database implementation to keep a copy of the whole database in memory? i.e. at startup, read the whole db file into some data structure and use that as the database, only interacting with the undelying file when changes are made.

Or are we expected to provide a scalable solution, assuming the possibility of really big database files that won't fit in memory and therefore require a smarter solution such as an LRU cache? Would this be way beyond the scope of the assignemnt?

Some other unrelated questions:
- If I do the initial design in a UML modelling tool, should I submit the model as part of the documentation?
- Should I submit my JUnit tests?
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tomas,

Originally posted by Tomas Varsavsky:
Is it ok for the database implementation to keep a copy of the whole database in memory? i.e. at startup, read the whole db file into some data structure and use that as the database, only interacting with the undelying file when changes are made.


It seems to be the general consensus here that this is allowed.

Or are we expected to provide a scalable solution, assuming the possibility of really big database files that won't fit in memory and therefore require a smarter solution such as an LRU cache? Would this be way beyond the scope of the assignemnt?


Yes, you would definately be doing too much!

Some other unrelated questions:
- If I do the initial design in a UML modelling tool, should I submit the model as part of the documentation?
- Should I submit my JUnit tests?


No, you should only submit the material that is explicitly requested in the instructions. The assessors will only look at those materials, so they can judge every assignment on the same material.

Good luck with your assignment,

Frans.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic