[fpc-devel] Adding a unidirectional dataset to sqldb

Joost van der Sluis joost at cnoc.nl
Thu Oct 5 22:43:06 CEST 2006


On Thu, 2006-10-05 at 08:57 +0200, Michael Van Canneyt wrote:

> On Thu, 5 Oct 2006, Joost van der Sluis wrote:
> > I have plans to add an unidirectional dataset/query to sqldb. Thus one
> > that isn't inherited from TDataset. This to improve performance, for for
> > example cgi-like programs, in which iterating back and forth through a
> > database isn't necessary.
> > 
> > But while working on this, I discovered that very much code from
> > TSQLQuery could be exactly copied to this new class.
> > 
> > Now I'm thinking about using an interface, to avoid double code. But I
> > don't know what effect that has on run-time performance. I mean, the
> > idea was to make if faster ...
> 
> An interface does not contain any code, so how would adding an interface
> help ?

You're right. It was probably late last night. ;)

Do you have another solution? Plugwash suggested to use an include file,
with some macro's defined. That could work, but it's a little but ugly,
imho.

Other ideas?

Joost




More information about the fpc-devel mailing list