comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: most efficient method of storing records held in array
Date: Mon, 23 Mar 2015 18:35:29 +0100
Date: 2015-03-23T18:35:29+01:00	[thread overview]
Message-ID: <1maq1tzx3kcwk.15fvvg45r5txy$.dlg@40tude.net> (raw)
In-Reply-To: f521b285-1afd-4509-960f-e71be9d3ae19@googlegroups.com

On Mon, 23 Mar 2015 04:56:40 -0700 (PDT), tonyg wrote:

> I have several fairly long arrays of records that I want to store to disk
> on a as needed basis, but I don't want to use a database.
> 
> Especially after reading that comparison between database speed and
> persistant objects that was recently floated.
> 
> I did look at the persistent objects library  in the Dmitrys Kazakov
> components library but I'm finding it difficult to understand what is
> going on there despite the large amount of documentation.
> 
> Are there any other examples out there using this library? I was thinking
> of a generic library using direct io to save on the index whenever the
> values are changed.

The implementation of the persistence layer is based on Direct_IO,
actually.
 
> What do you guys think?

Everything depends on the intended usage. Whether data are immutable, how
frequent in relation are insertion, seek, deletion, whether elements have
fixed or variable size, should access be task-safe, which operations are
required to be atomic, should the persistent structure survive hard system
crashes, should the container file keep several structures, how they are
identified (catalogue etc), could the structures be removed independently
and so on. There is no ultimate solution and efficiency (defined in any of
multiple possible ways) highly depends on the choices made.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  parent reply	other threads:[~2015-03-23 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 11:56 most efficient method of storing records held in array tonyg
2015-03-23 15:34 ` Jeffrey Carter
2015-03-23 17:35 ` Dmitry A. Kazakov [this message]
2015-03-26 11:05 ` tonyg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox