[fpc-pascal]Databases and FPC

Rainer Hantsch rainer at hantsch.co.at
Tue May 6 11:44:45 CEST 2003

Hello, Peter!

This sounds good in the first moment (-> mmap), but I am afraid that this
includes a small disadvantage:
I can (possibly) feed a complete file with mmap() into memory, but this will
be then obe huge data block. And this will make it much more complicated to
work with in the case that you have to insert records. (This is at least my
personal impression.)
Though, when I load the file "manually" (meaning row by row and building my
own dynamic list on the heap), I have available the full bunch of
possibilities, can arrange the data as *I* wish, and so on. Gives me more
flexibillity. - Am I right? :-)

On Tue, 6 May 2003, Peter Vreman wrote:

| > Use a very fat machine with a lot of memory, the best will be to do that
| > on
| > the same machine where your IRC application is running, too.
| > Write a "server" part which loads the whole "database file" into a dynamic
| > list on the heap, hereby sorting it. Then it offers some kind of
| > communication
| Under linux there is mmap() which will you let the kernel load the pages
| of the database file on demand. See the man page of mmap for more info.
| Peter
| _______________________________________________
| fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
| http://lists.freepascal.org/mailman/listinfo/fpc-pascal


  Ing. Rainer Hantsch

|      \\|//              Ing. Rainer HANTSCH  -  Hardware + Software |
|      (o o)              Forget Windoze! -- We focus on L-I-N-U-X... |
| Ing. Rainer HANTSCH |  mail: office at hantsch.co.at                   |
| Khunngasse 21/20    |   www: http://www.hantsch.co.at               |
| A-1030 Vienna       |   tel: +43-1-79885380    fax: +43-1-798853818 |
| ** A u s t r i a ** | handy: +43-664-9194382   UID-Nr: ATU 11134002 |

More information about the fpc-pascal mailing list