Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Anyone using MemSQL with Perl?

by jimpudar (Pilgrim)
on Nov 07, 2018 at 00:12 UTC ( #1225340=perlquestion: print w/replies, xml ) Need Help??

jimpudar has asked for the wisdom of the Perl Monks concerning the following question:

Hello esteemed colleagues,

Today MemSQL has released a free tier version for databases under 128 GB.

I would love to try this out, but haven't been able to find a DBI driver for MemSQL on CPAN.

MemSQL claims to be wire-compatible with MySQL, so it's possible the MySQL driver will work out of the box, but I haven't tried it yet.

If it doesn't work, I may try my hand at writing a driver or shim layer over the MySQL driver.

Have any of you been using the paid version with Perl already?



πάντων χρημάτων μέτρον έστιν άνθρωπος.

Replies are listed 'Best First'.
Re: Anyone using MemSQL with Perl?
by jimpudar (Pilgrim) on Nov 07, 2018 at 04:22 UTC

    Hi all,

    I can confirm that MemSQL does indeed work with DBD::mysql out of the box.

    The only trick is using host= in your DSN to force a TCP connection instead of trying to connect via Unix socket.

    Happy hacking!


    πάντων χρημάτων μέτρον έστιν άνθρωπος.

      Hi, I am interested in hearing what about MemSQL interested you? Thanks.

      The way forward always starts with a minimal test.

        For my use case, I require extremely high write throughput but don't care much about durability. I also require indexing for fast queries.

        I've been using Redis with RediSearch, but I've always desired real SQL queries.

        In general, as RAM becomes cheaper and acceptable server response time shrinks, I think we will trend toward in-memory databases. MongoDB for example has an in-memory storage engine you can purchase. I do like MongoDB and Redis, but when you are dealing with relational data SQL is really the best fit IMHO.


        πάντων χρημάτων μέτρον έστιν άνθρωπος.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1225340]
Approved by stevieb
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2020-01-18 05:55 GMT
Find Nodes?
    Voting Booth?