Hi,
Q3:
Do we have to think of the size of the memory? The record number is long. Does it imply the db file might be huge? If it does, implements full-cachintg might loose marks. Suppose record mumber is int, should we think of the size of the memory?
You say: "The record number is long."
I certainly was suspicious when my DBMain method used an int for the record number;
and, it annoys me somewhat since I feel that it should be a long instead (though,
Java signed ints can get pretty large).
Presumably, for past projects, whose specifications may be different from yours,
loading the complete file into memory may have been okay (assuming that it
was appropriately justified).
I personally am not concerning myself too much with this issue until I have
a rough operational program; at that time, I can start to create large files,
think about just how big this database file might get, and so forth: for instance,
will I place a check into my software to determine if the record number has
gotten larger than an int value can hold?
Do we have to think of the size of the memory?
Generally, you can think and should think about all these issues. This, as is
my understanding, is part of the assignment. And, what your final decisions
are and their justifications are also part of the assignment.
There is a page on this web site dealing in general with the different approaches
people took, and many of these different approaches passed. Probably they
passed because they justified their particular approach.
As I'm relatively new to this newsgroup, I hope others will feel free to correct
and mis-notions I may speak.
Thanks,
Javini Javono