News for hackers. Stuff that matters.
Re:MongoDB gets support for multi-document ACID transactions by neovive on Thursday February 15, 2018 @10:43AM (#16384887)
Has anyone worked with MySQL JSON data types in production? For most projects, I prefer working in SQL via a query builder or ORM for abstraction, but find a few features that would benefit from denormalized JSON storage.
Re:MongoDB gets support for multi-document ACID transactions by furicane on Thursday February 15, 2018 @11:03AM (#16385044)
I've been using MySQL 5.7 since its release in production. I used to store JSON data in a blob, but when they released JSON support - I just couldn't wait to use it. It's working really, really good. JSON support solves a ton of problems we used to have, and we used EAV model to tackle those problems (I won't get into details, the discussion will go the other way). I deal with a few hundred MySQL deployments ranging from 1GB dataset size to several terabytes, with multimaster and MySQL cluster setup to in-app handled sharding. There are several notable pieces of software that never caused any problems in our use scenario, and MySQL is one of them. The other is nginx. Can't really remember the third. I often wondered why anyone would use MongoDB or similar, but I always keep forgetting that developers are usually inexperienced hipsters who are looking for magic unicorn to solve their lack of knowledge / experience.
Re:MongoDB gets support for multi-document ACID transactions by pizza234 on Thursday February 15, 2018 @11:14AM (#16385149)
> I often wondered why anyone would use MongoDB or similar, but I always keep forgetting that developers are usually inexperienced hipsters

You can do a basic google search, and you will find out use cases where document-based data storages are advantageous compare to relational ones.

Re:MongoDB gets support for multi-document ACID transactions by furicane on Thursday February 15, 2018 @11:28AM (#16385261)
So what you're saying that if I find something on google, it's undoubtedly true and I should blindly believe it? For every one of those use cases, I can provide a counter-argument. And there are many more who can do the same.
Re:MongoDB gets support for multi-document ACID transactions by scarface74 on Thursday February 15, 2018 @11:35AM (#16385338)
I used RDMSs for 15 years before ever using Mongo. I fell in love with Mongo from the first time I used it with a pre-existing system. The beauty of just being able to insert and retrieve my whole C# object graph with one statement was a thing of beauty.

I'm a Domain Driven Design true believer. The thought of just being able to store my entire domain model without the machinations of the object relational impedance mismatches was glorious.

I use C# so my document collections are strongly typed C# objects and thanks to the Mongo C# Linq provider, my queries are also strongly typed.

Re:MongoDB gets support for multi-document ACID transactions by pizza234 on Wednesday February 21, 2018 @05:03PM (#16433398)
When all you have is a hammer, everything looks like a nail.
Re:MongoDB gets support for multi-document ACID transactions by neovive on Saturday February 17, 2018 @11:48AM (#16401441)
Thanks for the advice and vote of confidence in MySQL JSON support. I don't anticipate reaching that kind of scale, but it's great to hear about large, successful, production deployments. These days I try to stick with a very stable back-end stack and innovate more on the front-end.
Re:MongoDB gets support for multi-document ACID transactions by chrisan on Thursday February 15, 2018 @09:29PM (#16389442)
We switched over some non-essential data to json. All of it was for stuff that we don't index, join, or SQL search (elasticsearch still indexes it).

It is always just the display data on details page

Not sure if thats a good use case, but it cleaned up our tables and given the data fields can vary from customer to customer its a nice flexibility. Previously it was an Entity-attribute-value setup for these fields (which was very slow after we got into millions of rows) and we were considering a NoSQL option

Re:MongoDB gets support for multi-document ACID transactions by toomuchtodo on Thursday February 15, 2018 @10:46AM (#16384908)
Re:MongoDB gets support for multi-document ACID transactions by mat_keep on Thursday February 15, 2018 @11:00AM (#16385018)
Re:MongoDB gets support for multi-document ACID transactions by furicane on Thursday February 15, 2018 @11:10AM (#16385109)
You're aware that the vendor will post gospel about their product on their own website? I'm not using Postgres, I use MySQL, but I can assert with 100% certainty that most of the "comparison" on that URL is just marketing bullshit. You're a prime example that this new-age bullshit works and that's what's worrying.
Re:MongoDB gets support for multi-document ACID transactions by mat_keep on Thursday February 15, 2018 @11:18AM (#16385172)
great. Do i declare i worked at mysql for 5 years as well? Both before and after Oracle acquisition
Re:MongoDB gets support for multi-document ACID transactions by furicane on Thursday February 15, 2018 @11:32AM (#16385302)
How's that relevant? You're neither lead architect nor does your employment at MySQL / Oracle mean anything. Many incapable developers score positions at big companies. Without facts, maths and measurement you can be Linus Torvalds for all I care. The article at the URL provided is simply marketing ploy. I'm experienced enough to notice what's wrong with the comparison, but I won't take that article apart to prove anything. If you believe Mongo is a product that helps you - perfect. Now, if you're thinking you'll convince me that it's great by berating another great product - well, that raises a red flag. Who says I've to use a single software vendor anyway?
Re:MongoDB gets support for multi-document ACID transactions by mat_keep on Thursday February 15, 2018 @04:02PM (#16387598)
it was the reference to me as "You're a prime example that this new-age bullshit works and that's what's worrying". The same statements were leveled at anyone from mysql 10-15 years ago. I'm glad mysql works well for your use-case
Re:MongoDB gets support for multi-document ACID transactions by znep on Thursday February 15, 2018 @11:14AM (#16385151)
Are you the Mat Keep who is Director of Product Marketing at MongoDB? If so then, FWIW, people don't often respond well to marketing links posted without identifying your connection to the company.
Re:MongoDB gets support for multi-document ACID transactions by mat_keep on Thursday February 15, 2018 @11:16AM (#16385162)
yes, my bad, i should have done that
Re:MongoDB gets support for multi-document ACID transactions by Tostino on Thursday February 15, 2018 @04:07PM (#16387635)
That was a pretty trash piece of marketing.