by wenc · 8y ago · 0 comments
I've seen high-speed machine data stored in Mongo for logging and visualization purposes. It's an improvement over writing csv files to disk.
However, if you ever need to perform non-trivial analytics, Mongo's weaknesses quickly become obvious. For machine learning, typically you would want to first ETL the data into a dataframe-like structure (which is a structure native to SQL databases).
It's an improvement over writing csv files to disk.
This is not a high bar.Also not sure where you get the idea dataframes are unique to SQL databases because that's completely wrong. HBase and Cassandra were even the original big data databases and they aren't relational. And Spark can manifest almost any database as a dataframe.
I'm not sure I said this.
> HBase and Cassandra were even the original big data databases and they aren't relational.
They also had trouble doing joins and many other query operations which are common in analytics. Presto addresses this somewhat.
> And Spark can manifest almost any database as a dataframe.
Which entails a translation layer from whatever non-tabular form that data was (e.g. JSON) into a dataframe-like structure, rather keeping it in its native form, which reinforces my point. You still need to somehow transform data into tabular form. (ETL is just a batch way of doing this transformation; you can have live transformations of course, with accompanying overheads)
BI tools also generally require data to be in tabular form, which entails the use of a translation layer. The Mongo BI connector is one such translator.
> Actually MongoDB is quite popular in the analytics space.
I work in this space, interact regularly with vendors, and monitor the space actively for strategic developments. This does not track with my observations.
I'm curious: how so?
memcached and Redis are commonly deployed for caching, but not for persistence (Redis has optional persistence). That is not to say you can't use them, but I'm not sure what makes them a necessarily better choice than Mongo in this situation (persisted high-speed machine data).
Edit: OK, I see you mean the "for store-and-retrieve use cases" part. You have a point, though Mongo seems to be ok for that use case too.
It tends not to occur to me that durability is a feature people are looking for in nosql, but if you’re trying to avoid having three to five copies (SQL, nosql, search, reporting, ?). of your data I could understand. But as the team gets bigger it gets harder to maintain that, figuratively and literally.