Re: Event-based databases



T.M. Sommers wrote:

which are variable length.

I would think that fixed-length fields in the files would improve performance:

Variable:

Read length of field
Read field

Fixed:

Read field

One read instead of two, no calculations, easy to jump to any row in the file, and so on.


Uh, no, in many cases. The first calculation is "is the data in the RAM-memory data cache, or do we need to go to disk to find it?". A smaller total database means that there is a
higher probability that you won't need to go to disk.

Without an in-RAM disk cache, and if the disk file system allows random disk seeks controlled by the program, then that is where the fixed length fields .. and thus locations in disk blocks ... speeds things up.

Doug McDonald
.



Relevant Pages

  • Re: Partition Software for Linux.
    ... disk size. ... disk File system. ... Free space. ... Skype: thezorch ...
    (Ubuntu)
  • Re: Code sample for manipulating Mounted Volume List
    ... an QIO-ACP interface for a disk file system? ... I've seen SCSI drivers done when VMS didn't yet really support ... It was for an optical disk, ...
    (comp.os.vms)
  • Partition Software for Linux.
    ... language which will have following features in it. ... disk size. ... disk File system. ... Free space. ...
    (Ubuntu)
  • GRUB master boot record
    ... the Jump Instruction. ... BIOS parameter block is a description of the physical medium ... as for flexible/floppy and optic distal disk cartridges) also ... installed in the first track (Sectors 1 ff.) of an HDD; ...
    (comp.os.linux.hardware)
  • GRUB master boot record
    ... the Jump Instruction. ... BIOS parameter block is a description of the physical medium ... as for flexible/floppy and optic distal disk cartridges) also ... installed in the first track (Sectors 1 ff.) of an HDD; ...
    (comp.os.vms)