It means that the data from one user has no relations to the data from another user. So most if not all their queries only query the data of one user.
This is really useful for things like sharding, where you can split a database table onto more than one machine, because there will be few queries that will stall fetching data from one machine to another.
Why not have a database for each user? Evernote's data is partitioned perfectly for that. Notebooks and notes are accessible to one user or are public. There is no sharing notes between users.
Re:Evernote blog: WhySQL?
by mitchellhislop on Thursday February 23, 2012 @10:56AM
(#3625369)
There is sharing notes between users though - I have several shared notebooks, each holding shared notes.
Re:Evernote blog: WhySQL?
by ThaddeusQuay2 on Thursday February 23, 2012 @03:10PM
(#3626512)
Actually, his idea of a database for each user could still work, even though there is sharing of data between users. Take each database, and turn it into an executable object, which reads/writes its own data, and which communicates with other objects for sharing. It's like taking the actor model of computation, and orienting it for database use. I don't know of any working example of where this has been done, but I don't see why it wouldn't be feasible.
Their SQL is executed per user, so they only touch around 1/20M the size of the database for any request.
Re:Evernote blog: WhySQL?
by daleharvey on Thursday February 23, 2012 @09:32AM
(#3625027)
Not likely, but they can very easily have a database holding all users with id starting with 'a'
Does it mean they have a database per user? That can't be right is it?