From the instruction, I am guessing it should be an array of 7 without the status flag, but I am not sure.
Hoping someone has an answer. I am not very clever.
Roel De Nijs wrote:A final important remark: Before you start updating the file, make sure you have a backup of your database file, because when you submit your assignment, you have to provide an original, unchanged database file.
Roberto Perillo wrote:we think this is the easiest one.
Roberto Perillo wrote:we keep a cache that reflects the database in memory, so when we have to deal with them (when we have to update a record, for instance), we read the memory cache. And then, we just deal with the physical .db file 2 times: when the application starts, and when the application finishes.
1. include flag and all data as is in a create. why not?
Roberto Perillo wrote:
Now, RandomAccessFile is like a unanimity, everybody uses it. It is simple to deal with it and it does the job well. I think this discussion also brings up a question (and Debs, think about it): how are you going to deal with the database records? Basically you have 2 options: dealing with them directly in the .db file, or dealing with them in memory.
In your decision to use the data base in memory, what kind of approuch did you use to instanciate all data into memory?
Some kind of singleton that is executed in the first data access?