AW: plpython transforms vs. arrays

From: "Sonnenberg-Carstens, Stefan" <ssonnenberg(at)ophardt(dot)com>
To: Mark Teper <mark(dot)teper(at)gmail(dot)com>, "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: AW: plpython transforms vs. arrays
Date: 2019-05-06 09:34:08
Message-ID: 18e2584b905d47409a46b385a9b91157@OPHT402P.ophardt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Understood, a great example what is possible if the toolset is open ;-)

Mit freundlichen Grüßen
Stefan Sonnenberg-Carstens

Teamleiter Softwareentwicklung WECO / DevOps Engineer
B.Sc. Wirtschaftsinformatik

[Signatur_50-Jahre-ingo-man]

OPHARDT HYGIENE-TECHNIK GmbH + Co. KG
Lindenau 27
D - 47661 Issum

Tel: +49 2835 18-492
Fax: +49 2835 18-28492
Mail: ssonnenberg(at)ophardt(dot)com<mailto:ssonnenberg(at)ophardt(dot)com>

www.OPHARDT.com<http://www.ophardt.com/>

Handelsregistereintrag beim Amtsgericht Kleve:
Kommanditgesellschaft HRA 1681, Komplementärin:
OPHARDT HYGIENE-TECHNIK VerwaltungsGmbH HRB 3910

Geschäftsführer: Thomas Houcken

USt.-Identifikations-Nr.: DE813067257

CONFIDENTIALITY NOTICE:

This e-mail communication and any attachments may contain confidential and privileged information for the use
of the designated recipients named above. Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies
of the original message.

Von: Mark Teper [mailto:mark(dot)teper(at)gmail(dot)com]
Gesendet: Montag, 6. Mai 2019 11:33
An: Sonnenberg-Carstens, Stefan; pgsql-sql(at)lists(dot)postgresql(dot)org
Betreff: Re: plpython transforms vs. arrays

Hi Stefan,

> is the Python code running inside the PostgreSQL instance?

Yes, it is using the PL Python language so it runs in the PostgreSQL instance. With some help from Tom, I've been able to make the change needed to allow this transform.

I need to do some more testing, but my preliminary results for the arrays I'm interested in show transforming Postgres to Numpy is about 5x faster and transforming Numpy back to Postgres about 2x faster.

Regards,
Mark

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Midgley 2019-05-06 19:35:37 Re: create role/user management
Previous Message Mark Teper 2019-05-06 09:32:40 Re: plpython transforms vs. arrays