The latest version of libpqxx, 1.2.2, introduces a new class
"CachedResult" that makes large result sets easier to handle by fetching
rows on-demand and caching them internally. I've added some tests for
this new feature, but the code is fairly complex and I'm sure it can be
broken in ways I haven't thought of.
Is anyone out there willing to give it a whirl? It's far from finished
now (it doesn't evict blocks yet if the cache gets too large, and there
are going to be some internal changes before I can implement iterators)
but I suspect this class may be fairly useful already.
Download it at
pgsql-interfaces by date
|Next:||From: Robert||Date: 2002-12-03 14:53:21|
|Subject: accessing tuples directly|
|Previous:||From: Lee Kindness||Date: 2002-12-02 16:30:15|
|Subject: Re: 7.3 gotchas for applications and client libraries |