News for hackers. Stuff that matters.
Re:RethinkDB versus PostgreSQL: my personal experience by quizotic on Thursday February 09, 2017 @04:49PM (#13611336)
> "Saving" 15 minutes of dev time because you don't know what your schema is going to look like is going to cost you orders of magnitude more time.

While I agree with the spirit of this, sometimes you'll never know what your schema is, because it's not under your control to begin with. That's why there are triple-stores and "document" databases and key-value stores now, and why there were deductive databases 30 years ago.

The world is wide, and there's room for more than one tool in the chest.

Re:RethinkDB versus PostgreSQL: my personal experience by benjiweber on Thursday February 09, 2017 @06:06PM (#13611878)
Postgres is of course an excellent document store with JSONB.

Its really powerful being able to create relational views backed onto data as json and vice versa.

Re:RethinkDB versus PostgreSQL: my personal experience by cageface on Thursday February 09, 2017 @09:27PM (#13612822)
Exactly. The arrival of JSONB in Postgres killed most of my interest in other nosql stores. It's the best of both worlds.
Re:RethinkDB versus PostgreSQL: my personal experience by rodionos on Friday February 10, 2017 @02:48AM (#13613886)
This assumes that JSON is what you want to store and query. In my experience, about 1 year ago, I couldn't get basic things out from the Puppet database.
Re:RethinkDB versus PostgreSQL: my personal experience by Bedon292 on Thursday February 09, 2017 @06:06PM (#13611883)
Even those use cases can sometimes be met by an RDBMS. Postgres can outperform Mongo as a key value, or json doc store. But Mongo is what many people think of for something like that.
Re:RethinkDB versus PostgreSQL: my personal experience by quizotic on Thursday February 09, 2017 @06:35PM (#13612056)
And for those who may not know, but appreciate irony, Mongo now uses ... wait for it ... a somewhat stripped down, key-value-ish, embedded ... RDBMS as its underlying data store. Yes friends, "it's a dessert topping AND a floor wax"
Re:RethinkDB versus PostgreSQL: my personal experience by quizotic on Thursday February 09, 2017 @06:39PM (#13612074)
should also point out that Mongo is more than a jsonb store, and postgres is, at least currently, less than a distributed, "scale-out" database. Mongo supports problems that postgres cannot currently address. period. (and I'm a huge postgres fanboi)
Re:RethinkDB versus PostgreSQL: my personal experience by philliphaydon on Thursday February 09, 2017 @10:29PM (#13613012)
Could you share some of those problems? (genuinely interested)
Re:RethinkDB versus PostgreSQL: my personal experience by phamilton on Friday February 10, 2017 @10:32AM (#13616028)
Horizontal scalability. Outgrowing a single master database (writes being bottlenecked, not reads) is really painful. You can engineer around it, but spinning up another master in a multimaster DB is a really quick and easy fix (once you have tooling built out it's a matter of minutes). Sharding your Postgres DB is not a quick and easy fix. It will likely take about a month to engineer around and perform the data migration, if not longer.
Re:RethinkDB versus PostgreSQL: my personal experience by floatboth on Friday February 10, 2017 @01:12PM (#13617512)
I've heard good things about Citus for horizontally scaling Postgres.
Re:RethinkDB versus PostgreSQL: my personal experience by phamilton on Friday February 10, 2017 @05:01PM (#13619291)
I've pretty much only heard about it in the context of OLAP. If your data model requires transactions, you're gonna have a hard time when you outgrow a database.
Re:RethinkDB versus PostgreSQL: my personal experience by threeseed on Thursday February 09, 2017 @06:58PM (#13612168)
PostgreSQL outperforms MongoDB how ?

Because as someone who has tried to update JSON documents (1M/s) in both PostgreSQL and MongoDB I would strongly disagree. MongoDB with WiredTiger was at least 10x faster per node and in terms of pure updates one of the fastest databases I've ever seen. And before the trolls yes I was fsyncing to disk.

Re:RethinkDB versus PostgreSQL: my personal experience by drdaeman on Thursday February 09, 2017 @09:56PM (#13612915)
Postgres doesn't fancy many small and frequent updates (like rapid counter increments).

It is workable, though, via combination of batching, ensuyring indexes on hot fields have appropriate fillfactor, and making sure Postgres can use heap-only tuples.

Here's my old SO question on this and a well-comprehensive answer that's still actual and could be helpful for some cases: http://stackoverflow.com/a/1663434/116546

Re:RethinkDB versus PostgreSQL: my personal experience by StreamBright on Friday February 10, 2017 @03:52AM (#13614131)
This is pretty amazing. Now, would you mind showing me a situation when the raw insert performance is the single dimension when we are making a technical decision?

Hint: you probably can't, the reason why you store data is that you can read it (query it) later. MongoDB could be 10000x faster with inserts, still not a considerable solution for us because it fails with many of the other aspect of providing a great data access layer.

Re:RethinkDB versus PostgreSQL: my personal experience by osullivj on Friday February 10, 2017 @05:34AM (#13614472)
Raw insert performance is the main driver for tick databases persisting high frequency market data for HFT systems. The TimesTen DB, later bought by Oracle, was built for this scenario. Arthur Whitney's KDB too.
Re:RethinkDB versus PostgreSQL: my personal experience by StreamBright on Friday February 10, 2017 @01:27PM (#13617639)
Not to mention the sub second latecy for querying 1B rows.
Re:RethinkDB versus PostgreSQL: my personal experience by pmelendez on Friday February 10, 2017 @05:45AM (#13614511)
Not the single dimension but an important one. Any real time application processing events data (IoT, heartbeats, prices logs) would have a similar requirement. That's one reason why people uses queues, to try to workaround this. And as for the reads, it will drilldown to your query needs. I have done systems where the read requirement was a retrieval from a key and the writes request came in thousands per second.
Re:RethinkDB versus PostgreSQL: my personal experience by StreamBright on Friday February 10, 2017 @01:33PM (#13617701)
Absolutely, I have run data ingestion pipelines before for event data processing, perfectly suitable for the use cases you mentioned too. I just dont see mongodb as a good fit here.
Re:RethinkDB versus PostgreSQL: my personal experience by jeltz on Thursday February 09, 2017 @11:02PM (#13613119)
I think it depends on the workload. PostgreSQL does not not support updating documents in place but is really fast at writing and reading. Never done any benchmarking myself, this is just based on my general knowledge of what data structures and algorithms both databases implement.
Re:RethinkDB versus PostgreSQL: my personal experience by zapov on Thursday February 09, 2017 @10:11PM (#13612967)
Re:RethinkDB versus PostgreSQL: my personal experience by threeseed on Thursday February 09, 2017 @10:59PM (#13613108)
Not worth much. MongoDB is a completely different beast after version 3.0 with WiredTiger being the default.

But I am sure that there are use cases for which PostgreSQL is going to be much faster in particular single field lookups on unindexed fields across all records.

My point is that it's never black & white to say Database A is faster than Database B. It's always use case dependent.

Re:RethinkDB versus PostgreSQL: my personal experience by zapov on Thursday February 09, 2017 @11:34PM (#13613252)
well there is also https://www.techempower.com/benchmarks/#section=data-r13&hw=...

Point being when someone says something is faster without providing verifiable numbers... it should not really be taken seriously

Re:RethinkDB versus PostgreSQL: my personal experience by tokenizerrr on Thursday February 09, 2017 @05:59PM (#13611843)
> I'm not saying those use cases don't exist, I'm saying most people don't have them.