News for hackers. Stuff that matters.
Re:MemSQL is now free to use for databases with up to 128GB ... by nikita on Tuesday November 06, 2018 @11:42AM (#18392569)
MemSQL CEO here. There are a few:

- MemSQL is transactional and writes transactions on disk

- MemSQL has an excellent implementation of SQL with mature query optimization and query execution. And it get better every release. This is from 6.5 https://www.memsql.com/blog/6.5-performance/

- MemSQL has in-memory and on-disk data storage so you can use MemSQL to store petabytes

- MemSQL has columnstores and vectorized query processing: https://news.ycombinator.com/item?id=16617098

- MemSQL supports geospatial, fulltext search, and json

- MemSQL allows you to stream data from kafka in one command: https://docs.memsql.com/sql-reference/v6.5/create-pipeline/

Re:MemSQL is now free to use for databases with up to 128GB ... by noir_lord on Tuesday November 06, 2018 @12:39PM (#18393119)
Given the availability of open source solutions why would I in 2018 build a critical part of my application on a closed platform?

Genuinely not intended as snark, I'm just curious why memsql is so compelling that I would consider it.

Re:MemSQL is now free to use for databases with up to 128GB ... by ruw1090 on Tuesday November 06, 2018 @03:19PM (#18394560)
To build on the list of features above, here's a blog post from Pandora where they go into the details of what they use MemSQL for and some of the alternatives they looked into for their use case: https://engineering.pandora.com/using-memsql-at-pandora-79a8...
Re:MemSQL is now free to use for databases with up to 128GB ... by dangoor on Tuesday November 06, 2018 @02:51PM (#18394345)
Isn't that what the previous answer was trying to say? Paraphrasing "MemSQL has these features which we think Apache Ignite and others do not."

All things being equal, I agree that open source solutions are the best. Things are just not always equal.

Re:MemSQL is now free to use for databases with up to 128GB ... by geezerjay on Wednesday November 07, 2018 @04:19AM (#18398006)
> Isn't that what the previous answer was trying to say?

Truth be told, the list if features is not very compelling. I mean, JSON support is not a reason to pick a commercial dbms over a FLOSS one.

Re:MemSQL is now free to use for databases with up to 128GB ... by _up on Tuesday November 06, 2018 @01:39PM (#18393689)
There is also Tarantool which is another in-memory/SQL DB and is Open Source.

https://github.com/tarantool/tarantool

Re:MemSQL is now free to use for databases with up to 128GB ... by _eht on Tuesday November 06, 2018 @02:00PM (#18393912)
I would also like to see a response to this.
Re:MemSQL is now free to use for databases with up to 128GB ... by CuriouslyC on Tuesday November 06, 2018 @01:04PM (#18393354)
Those are some nice features. Unfortunately, your DBMS doesn't do some basic things like return consistent results for a simple SQL query with a group by and having clause. I admit this might be a configuration issue on my company's end, but if so, that is a terrible configuration option and should be hidden away, opt in only, with a huge wall of warnings so people don't actually enable it except in extreme circumstances.
Re:MemSQL is now free to use for databases with up to 128GB ... by neildahlke on Tuesday November 06, 2018 @01:27PM (#18393568)
I've seen you mention these inconsistent results twice here in this this thread, but have worked at MemSQL for 5 years and never heard of such an issue. Have you reached out to see if maybe your query / data is not what you expect? I've seen inconsistent results only once, and it was because the default date formats across RDMBSs were different (and was not anticipated).
Re:MemSQL is now free to use for databases with up to 128GB ... by CuriouslyC on Tuesday November 06, 2018 @03:05PM (#18394443)
How would the query/data not be what I expect if If I'm writing the query myself, and looking directly at the sql table definition to create it?

Beyond those considerations, why would the same exact same query (executed several times in rapid succession from the console) produce vastly different results? Also, I should clarify, rewriting the query from "select ... from xyz group by ... having ..." to "select ... from (select * from xyz where ...) group by ..." made the inconsistency goes away, without changing the filtering clause. That does not inspire confidence.

Re:MemSQL is now free to use for databases with up to 128GB ... by nikita on Tuesday November 06, 2018 @03:44PM (#18394747)
Can you post the full schema and query? Are you sure you are not projecting columns that are not part of the group by expression?
Re:MemSQL is now free to use for databases with up to 128GB ... by CuriouslyC on Tuesday November 06, 2018 @04:17PM (#18394989)
I really appreciate the offer. I got the go-ahead to share this information, where should I direct it?
Re:MemSQL is now free to use for databases with up to 128GB ... by nikita on Tuesday November 06, 2018 @04:36PM (#18395100)
Here, or https://www.memsql.com/forum/, or memsql-public.slack.com.
Re:MemSQL is now free to use for databases with up to 128GB ... by nikita on Tuesday November 06, 2018 @06:37PM (#18395860)
To close the loop on this one. We looked at the query and strictly speaking we should be rejecting it b/c HAVING clause is referencing a column that's NOT in group by and NOT an aggregate expression. The query shape is:

  select count(*), a from T group by a having b > 0
In this case b is not allowed to be part of having by ANSI standard.

We let it run b/c some customers migrate from MySQL and MySQL allows this query. You can set MemSQL to be strict about it by setting this variable:

  set session sql_mode = only_full_group_by;
Re:MemSQL is now free to use for databases with up to 128GB ... by CuriouslyC on Tuesday November 06, 2018 @08:12PM (#18396394)
Thanks for taking a look at it. Your position is perfectly reasonable, but given the fact that (at least in my case) the results I got back were subtly wrong, and there's a good chance someone wouldn't notice, it might be a good idea to default this off if it isn't already, with a really stern warning in the config.
Re:MemSQL is now free to use for databases with up to 128GB ... by curiousDog on Tuesday November 06, 2018 @12:52PM (#18393258)
If you’re hitting the disk, aren’t you losing some of the advantages of using an in-memory database in the first place? Or would it still be more performant than a traditional RDBMS due to optimized in memory data structures?
Re:MemSQL is now free to use for databases with up to 128GB ... by nikita on Tuesday November 06, 2018 @01:35PM (#18393651)
There is a compound effect in building memory optimized features and being a distributed database that can put a lot more cores at work and cache a lot more data in a cluster:

- In-memory row stores. Super fast for updates and point lookups

- Memory optimized hash joins that minimized cash misses. Great for analytical/reporting use cases

- Vectorization for columnstore query processing. Super fast aggregations that work best when data is cached in memory