Re: more help!

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 07:05 PM 4/28/98 +0000, Luis Campos wrote:

>Hi euphorians!
>    Last night i was taking a look to the simple(not simple for me!)
>    database program included in the Euphoria package( i don't
>    remember it's name right now!). I arrived to the conclusion
>    that it would read the database archive( with estructure of
>    sequence ) stored in the hard disk and put it as a *whole* in
>    ram memory.What would happen if the data base archive is
>   300MB big
>    and i only have 8 MB of ram?(In the documentation says that it
>    doesn't works fine if it has over 1000 records).The creation of
>    swap archive would slow down the speed of
>    reading,finding,etc?
>
It certainly would! Even with lots of memory, with a file this large (or
even a few megs) the speed of loading and saving would be too slow to make a
practical program.

There are two ways I can think of to solve the problem:
 1. Create fixed-length records on disk, then you can do
     reads and writes of single records (using seek, and
     perhaps sorted index files)
  2. Use doubly-linked lists - but this wouldn't be efficient with
      variable length records, either, come to think of it.

Anybody have a better idea?

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu