Simon Willison’s Weblog

Subscribe

How was FriendFeed’s schema less db faster than pure MySQL?

30th October 2013

My answer to How was FriendFeed’s schema less db faster than pure MySQL? on Quora

The principle reason they switched to a schemaless DB was to work around the challenges of having to make schemes changes in MySQL, which can lock the table and take hours if bit days to complete in large tables.

The performance improvement shown in the graph is almost certainly because they almost entirely eliminated joins and complex queries when they switched to the new mechanism. This meant that all it their database traffic was now simple queries, which have much more predictable performance characteristics. MySQL (in fact all databases) are extremely fast at primary key lookups and index scans.

This is How was FriendFeed’s schema less db faster than pure MySQL? by Simon Willison, posted on 30th October 2013.

Next: Should I ever use GIF image format for non animated elements?

Previous: For a 2-day developer conference in SF, which two days of the week are best?

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe