• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Caching

 
Niels de Feijter
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi (upcomming) Sun Certified Java Developers,

For greater performance, I was planning to cache the contents of the supplied database in memory. This is no issue for the database header information, but is for the records.

My DBAccess interface specifies that record numbers are of type long. The standard java collections classes use int for indices.

My questions are:
* The requirements do not specify a caching mechanism. To receive full credits, is a caching mechanism required?
* If a caching mechanism is required, which datastructure should I use (regarding long vs int). Should I write a structure myself?

Best regards,
Niels
 
josine wilms
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Niels,

In my specifications there was nothing about a caching mechanism. So you shouldn't be rated on it.

Because the application according to my specifications is an inbetween solution before moving to an internet-based application/ seen as an 'learning experience', I think it's a bit too much.

It may be an interesting exercise for yourself, but when you don't implement it nicely, you can be downgraded for the effort..

Good luck with your choice,
Josine
 
Niels de Feijter
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Josine,

Thanks for your reply. Then I won't implement it and motivate my choice. Based on your answer, I will reconsider some other issues too and will focus only on he MUST requirements. It is so tempting to add requirements but since it will not affect the grade, those will only consume precious time. Ah, the precious
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic