• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reading Files bit by bit... help please.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: StartupDisk application in Control panel
  • Next by Date: Apple script + Quicktime for a Newbie
  • Previous by thread: Re: Add command to Contextual Menu?
  • Next by thread: Re: Reading Files bit by bit... help please.
  • Index(es):
    • Date
    • Thread