aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Newbie quesitons (LRU Cache + more) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Newbie quesitons (LRU Cache + more)" Watch "Newbie quesitons (LRU Cache + more)" New topic
Author

Newbie quesitons (LRU Cache + more)

Tomas Varsavsky
Greenhorn

Joined: Apr 02, 2005
Posts: 3
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

Joined: Dec 29, 2004
Posts: 357
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.


SCJP 1.4, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie quesitons (LRU Cache + more)