Reading Files bit by bit... help please.
Reading Files bit by bit... help please.
- Subject: Reading Files bit by bit... help please.
- From: email@hidden (Ted Wood)
- Date: Mon, 29 Jan 2001 05:19:43 -0700
Hi Scripters,
I'm developing a large network and all CGI scripts and network applications
are being developed using AppleScript. It makes extensive use of databases,
but the network is being built using multiple low-end Macs (ie. 68030's,
etc), each with 8MB of RAM or more. Running FileMaker or a similar large
database solution is not an option.
I've been creating proprietary databases where the internal structure is
very flexible, with records having only fields that are needed at the time,
so different records will have different fields. Also, each database has
multiple sections (records and lists WITHIN records and lists, and so on).
My problem is that the time it takes to read a database consisting of 1000
records takes a L-O-N-G time, holding up the operations of the network for
a minute or so. Simply unacceptable, as this delay adds up with multiple
operations for a single client.
I've been using 'open for access' to create the files, then 'save/read
data' osax to read and write data to the files. It's works well, but I
can't figure out how to PARTIALLY read a file to speed up the process.
Also, updating a file currently involves reading the entire file to a
variable, updating the variable, then overwriting the file with the updated
variable. This works well, too, but it's S-L-O-W sometimes.
If you can provide any assistance or tips, I'd love to hear from you. Also,
if you're interested in working with me directly on this project, I could
use the help. Please write me at: Ted Wood <email@hidden>.
Thanks for any help.
Ted