Live data from Hacker News

MySQL is a Better NoSQL

engineering.wix.com

21–30 of 91 posts

Re: MySQL is a Better NoSQL

#21
If sharding, rebalancing and partitions didn't exist... And if 1600 rps were enough when nosql can reach 1M rps (600 times more)... And if that homemade replication infrastructure was as mature and supported as nosql dbs...

Then using MySQL as a nosql might work.

Re: MySQL is a Better NoSQL

#22
post #8

Interesting that he advocates MySQL. PostgreSQL can index and interact with the JSON stored in it's columns, which make it a better choice as a NoSQL replacement. http://www.postgresql.org/docs/9.4/static/datatype-json.html

The JSON datatype is only useful if you want to query on the blob, which is not the case in Wix's case.

But you tell to keep columns that need indexs outside of the JSON so you can query on them, which is not necessary with Postgres

Re: MySQL is a Better NoSQL

#23
post #20

Earlier quoted context omitted.

Does anyone have a real, globally accepted NoSQL definition yet?

Well, it used to be databases that do not do SQL. But now, that Cassandra has SQL like query language, hadoop has SQL like hive and other NoSQLs implement semi-SQL interfaces, I believe a good definition is a database that is not one of 1. ACID 2. Strongly typed table schema.

Add sharding, rebalancing, replication and partition tolerance to the mix... I know some nosql dbs don't support that, but horizontal scalability is the benefit you should expect for dropping sql

Re: MySQL is a Better NoSQL

#24

I'm going to question your knowledge of the domain immediately when your solution to a problem is to take away all of the advantages of SQL without any of the benefits that Cassandra or Redis provide. To me this is akin to saying we don't need Haskell because Java now has lambda expressions.

What are the benefits of Cassandra or Redis that I am missing, for this use case? We have the latency figures as good as Cassandra can get and we get a reliable engine to store data (something that Redis is not - read Aphir post about Redis)

The main advantage of MySQL that we keep is the rock solid platform with all the know-how to operate and manage.

Re: MySQL is a Better NoSQL

#25

This is right and wrong in the same time. Not sure which more. Storing JSON as TEXT is great, but you really only query the data based on the mySQL index. What if you need to query based on the site_data? This is really not NoSQL this is just a key value store with a JSON object that is not even native type to the database, you will still need to parse back/forth. What about updating the data? You need to get the obj…

He basically gives all the caveats you just stated in the post. They don't (and never will) query sites_data, and they will never get back more than one row.

Re: MySQL is a Better NoSQL

#26
This statement is nearly meaningless without context.

YesSQL is better than NoSQL for some problems (I happen to think many of them.)

NoSQL is better than YesSQL for some problems (I happen to think more of them than I thought a few years ago.)

I'm glad that YesSQL worked well for Wix in this case.

Re: MySQL is a Better NoSQL

#27
I really hate any post that says "you don't really need this tool, this one does that job just fine for us"

You don't know my workload. You don't know my requirements. It is ok to make a post saying that a specific tool is wrong for these use cases, or that you believe that many people using a tool don't need it or would be better off with a different tool..... But don't act like you know my workload.

Re: MySQL is a Better NoSQL

#28
post #14

I did an extensive survey of NoSQL databases recently and for my particular requirements Postgres ended up being the best choice. I examined MySQL too in this particular survey. Can't remember why but its JSON handling didn't meet my needs. Every time I consider alternative databases -and I've done so several times in the past ten years - I do a thorough examination and the answer always seems to come back to Postgre…

When and how did you evaluate PostgreSQL? Can you comment on PostgreSQL's horizontal scale?

Re: MySQL is a Better NoSQL

#30
Quick question - I'm confused about the comment "The nested query syntax ensures that we are doing only one round-trip to the database to run both SQL queries". Why is the nested syntax better than a regular join in this case?

Seems like a join would allow the query planner to decide how to carry out the query.

Post reply on HN