bank_mysql has binary prepared statements:
https://github.com/extend/bank_mysql
You can use it with the bank pool (
https://github.com/extend/bank) or
without, whichever you prefer.
No user guide at this time but it should be pretty easy to read.
On 04/16/2013 10:07 PM, Pablo Polvorin wrote:
> Is there a driver that supports the binary mysql protocol (not the
> textual, sql one) for prepared statements?.
>
> I come in a situation recently on a query where we have to bind lots of
> parameters into a prepared statement, and the time to escape all of
> them by the driver and send the corresponding SET @N = .. was
> substantial, actually larger than the time it takes mysql to run the
> query. Using the binary protocol in this situation would help.
>
> I found
http://erlmysql.sourceforge.net/ that do support the binary
> protocol, and although it was much faster on this particular query
> (order of magnitudes faster) it sometimes crashed and I found the code
> more complex than other mysql drivers I've worked with, both reason to
> make me nervous about using it. Is anyone using it on production?, do
> you know alternatives?
>
>
> *|
> |*
> <mailto:
jesper.lou...@erlang-solutions.com>> wrote:
>
> I may be interested in helping out on this thing as well. I have
> some work to do changing driver infrastructure to Emysql and when
> that comes around (in a couple of days/weeks), i'll probably also
> try to look into some merging of patches if possible.
>
> Please keep me in the loop :)
>
> Jesper Louis Andersen
> Erlang Solutions Ltd., Copenhagen
>
>
>
> On Apr 11, 2013, at 12:41 AM, Henning Diedrich <
hd2...@eonblast.com
> <mailto:
hd2...@eonblast.com>> wrote:
>
> > Hi Garrett,
> >
> > great, I'll check out your connection time outs, thanks a lot!
> >
> > It was quite fun to find Jacob, Nick and Fredrik to write this
> [1] up. It certainly felt more like historical forensics from some
> point on although I was throughout only trying to find out which
> driver version made most sense. Which in the end came to light in a
> way I could not read out of the source.
> >
> > If someone would like to share the story of his fork I'll be
> happy to include it, for the fun of it. Somehow, this all fits MySQL.
> >
> > Henning
> >
> > [1]
https://github.com/eonblast/Emysql#History
> >
> >
> > On Apr 11, 2013, at 12:25 AM, Garrett Smith <
g...@rre.tt
> <
hd2...@eonblast.com <mailto:
hd2...@eonblast.com>>
> <mailto:
diz...@dizzyd.com>> wrote:
> >>>>
> >>>>> Hello list,
> >>>>>
> >>>>> I'm curious what libraries people are currently using for
> MySQL access
> >>>>> in Erlang. I have an old library on my github that I've kept
> basically
> >>>>> working, but am wondering if there are any
> preferred/production libraries
> >>>>> out there that people like better.
> >>>>>
> >>>>> I ask because I'm considering retrofitting the pooling system
> in the
> >>>>> driver I maintain to use poolboy, but figure it was worth
> checking if there
> >>>>> are better alternatives out there. :)
> >>>>>
> >>>>> After all, the best code to maintain is the code you don't
> maintain.
> >>>>>
> >>>>> D.
> >>>>> _______________________________________________
> >>>>> erlang-questions mailing list
> >>>>>
erlang-q...@erlang.org <mailto:
erlang-q...@erlang.org>
> >>>
erlang-q...@erlang.org <mailto:
erlang-q...@erlang.org>
> >
erlang-q...@erlang.org <mailto:
erlang-q...@erlang.org>
>
erlang-q...@erlang.org <mailto:
erlang-q...@erlang.org>
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu