Alex <alex@meerkatsoft.com> writes:
> The initial select is pretty fast and first inserts very fast, but after
> a few thousand inserts the inserts start to slow down until it crawls.
> Writing the same in a normal perl script takes less than 90 seconds
> while the function is taking 10 minutes.
Can you provide a self-contained test case that shows this behavior?
regards, tom lane