Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Anyone using MemSQL with Perl?

by jimpudar (Monk)
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?

Thanks,

Jim

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

Replies are listed 'Best First'.
Re: Anyone using MemSQL with Perl?
by jimpudar (Monk) 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=127.0.0.1 in your DSN to force a TCP connection instead of trying to connect via Unix socket.

    Happy hacking!

    Jim

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

      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.

        Jim

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-11-20 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (225 votes). Check out past polls.

    Notices?