Re: pgsql: Binary data support improvement

From: Date: Tue, 02 Jul 2013 10:33:28 +0000
Subject: Re: pgsql: Binary data support improvement
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 02/07/2013 12:21, Yasuo Ohgaki wrote:
> 2013/7/2 Matteo Beccati <[email protected] <mailto:[email protected]>>
>     We could easily (and transparently) use binary for the parameters
>     explicitly bound as LOB, but I see no way we can use binary for results
>     -- which usually is the most common operation. Maybe it's better than
>     nothing though?
> 
> The API is not for ease of use, but for better performance as it eliminate
> needless hex conversions on both server and client side. 

What I meant is that we might have that speed improvements for free in
PDO when bytea is used as a parameter (i.e. most likely insert/updates).
With no visible change for the user and full backwards compatibility.


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/


Thread (10 messages)

« previous php.internals (#68033) next »