2

I read an article around schema-less database which sounds cool. (http://bret.appspot.com/entry/how-friendfeed-uses-mysql)

But what isn't clear to me is how do they run search queries on this data? Since the data is in JSON format how do we look for it?

Obaid
  • 4,328
  • 9
  • 42
  • 42

3 Answers3

2

For attributes that are needed for filtering / searching, they are first indexed using a separate table. This makes the data more transparent.

Let me quote what this post says: http://bret.appspot.com/entry/how-friendfeed-uses-mysql

Indexes are stored in separate tables. To create a new index, we create a new table storing the attributes we want to index on all of our database shards.

epicwhale
  • 1,835
  • 18
  • 26
1

I'd imagine they have a separate search engine with its own index - probably not even in MySQL, something like Solr.

ceejayoz
  • 176,543
  • 40
  • 303
  • 368
0

They're using sphinx for that

Aziz
  • 300
  • 1
  • 4