News for hackers. Stuff that matters.
Re:On moving from CouchDB to Riak by JoachimSchipper on Monday March 07, 2011 @03:19PM (#2298500)
You don't necessarily need to shard if the data fits comfortably on a standard disk... and the parent did mention PostgreSQL.
Re:On moving from CouchDB to Riak by grncdr on Monday March 07, 2011 @05:59PM (#2299087)
Sharding (for free) on PostgreSQL is surprisingly painful
Re:On moving from CouchDB to Riak by JoachimSchipper on Tuesday March 08, 2011 @04:32AM (#2300369)
I thought people just built sharding into the application level when using MySQL stuff - I'd imagine the same thing works just fine for PostgreSQL. Or were you talking about something else?
Re:On moving from CouchDB to Riak by prodigal_erik on Tuesday March 08, 2011 @05:02AM (#2300425)
Anyone who volunteers for app level sharding is going to find themselves deep in Special Hell. Step one is to rewrite all your queries so they no longer expect really exotic use cases like "SELECT ... WHERE" to actually work until you somehow figure out which nodes to run them on (and if it was supposed to be a join between entities crossing shards, good luck with that). Step two is to find working XA-aware drivers (haha). For step three you need a knife and a goat....

Apparently really high-end clustered databases solve this problem correctly, i.e., the schema is extended to specify where any record can be found, the cluster uses that to work out a minimally-stupid query plan, and record->shard mapping becomes merely a tuning decision. I've never had the opportunity to work with one. But I'm not bitter.

Re:On moving from CouchDB to Riak by JoachimSchipper on Tuesday March 08, 2011 @08:41AM (#2300785)
Actually, if you use MySQL as a "great hashtable in the sky (cloud)", it's not all that much more painful to shard things. That said, if you do that you're already in a state of sin/pain...