[HELP] fdo#51239 how to debug "it is slow"

Noel Grandin noel at peralex.com
Thu Jul 19 23:55:43 PDT 2012


On 2012-07-19 14:38, Lionel Elie Mamane wrote:
> For example, to minimise the number of Java calls from C++ , maybe we
> could, when we retrieve a whole row through JDBC, doing this from Java
> code instead of from C++ code:
>
> for (i=0; i < row->getNumberOfColumns; ++i)
>     cacheEntry[i]=row->getColumnValue(i);
>
> This would bring us down from one call per column to one call per row,
> hopefully without duplicating *too* *much* logic between a C++ version
> and a Java version.
>
>

For bonus points, retrieve a whole chunk of rows at a time, say around 1000.



Disclaimer: http://www.peralex.com/disclaimer.html




More information about the LibreOffice mailing list