On 05/01/11 17:00, Julian Taylor wrote:
> On Wed, Jan 5, 2011 at 5:47 PM, Sylvain Pointeau wrote:
>
>> in my opinion, other than oracle, the vectors should be filled for
>> each row by call backs.
>>
>> sql << "SELECT A1,A2,A3 FROM TABLE_1", into(a1_vector),
>> into(a2_vector)
>>
>> would it be possible that for each row, we call a function to fill
>> a1_vector and another function for a2_vector?
>>
>> we would not need to cache the results neither to have everything
>> as a string. and it would be a shortcut for the hand-coded loop,
>> but would not be less efficient.
>>
>> could we have special case for db other than oracle?
>
>
> I would propose to first do a benchmark to see if this is even
> worth it.

+1

IMHO, there is no point in in-depth discussion,
unless we have got a least simple measured figures.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to