Live data from Hacker News

How FriendFeed uses MySQL to store schema-less data

bret.appspot.com

91–92 of 92 posts

Re: How FriendFeed uses MySQL to store schema-less data

#91
post #30

Earlier quoted context omitted.

While your approach to do this in JSON is cool, I think you have overlooked the 'direct' solution to do this in a RDBMS - with a linked list. Here is a quick suggestion (works in Postgres): create table l ( id char primary key references l(prev) deferrable initially deferred, prev char unique not null references l(id) deferrable initially deferred, mydata text not null ); then I populate the table with your example i…

There's one more thing I forgot to mention... The data I'm having the user order is not only order-specific, but is recursive. That is, one of the items on the list, rather than be a letter like "B" can be a list in and of itself. It's basically like "files and folders" A major problem isn't only the UI, which took me days to make (drag and drop for files/folders ... anybody seen anything like this done before in HTM…

A tree widget with DD? http://extjs.com/deploy/dev/examples/tree/reorder.html

I bet there are lots of others too. This doesn't sound like something you'd ever want to write yourself (unless the widget IS your project).

Re: How FriendFeed uses MySQL to store schema-less data

#92
post #85
post #41

Earlier quoted context omitted.

Which commercial database? Any idea which web scale applications are using it, and why the other ones aren't?

MySpace runs on Microsoft SQL Server. http://blog.de-hao.com/2007/11/17/myspacecom-running-a-megas...

Yes, and it's partitioned out the Wazzooo.
Post reply on HN