Christoph Zwerschke wrote:
> Hi Raf,
>
> thanks again for your feedback regarding arrays and performance.
>
> In the trunk, you can now change the array cast function. Also, the
> namedtuple classes are now cached for better performance.
>
> If possible, check out the trunk and let me know if it works for you. We
> will then create a 5.0.3 release.
>
> I have also created a Trac issue for supporting non default start indices of
> Postgres arrays, but this will have to wait for 5.1.
>
> -- Christoph
Hi,
The speed problem disappeared. This new version
runs that test in 2.8 seconds instead of 9. Yay!
So it's now faster than with v4.2.2 (i.e. 4 seconds).
Adding in a call to pgdb.set_typecast('anyarray', lambda v, c: v)
makes it behave like v4.2.2 and taking roughly the same
time (3.5 seconds) as the original (was 4s, today it's 3.3s).
So that looks great. Thanks.
cheers,
raf
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql