News for hackers. Stuff that matters.
Re:Why Quora uses MySQL rather than No-SQL by known on Wednesday June 30, 2010 @06:49AM (#1474431)
Isn't it possible to configure MySQL server and data to run in memory if we've enough RAM?
Re:Why Quora uses MySQL rather than No-SQL by ericd on Wednesday June 30, 2010 @12:45PM (#1475402)
Yep, but I believe you have to handle persisting to disk yourself (there might be a Redis-like solution to this that I'm not aware of, though).
Re:Why Quora uses MySQL rather than No-SQL by astrange on Wednesday June 30, 2010 @01:57PM (#1475609)
What does Redis do?
Re:Why Quora uses MySQL rather than No-SQL by ericd on Wednesday June 30, 2010 @08:30PM (#1476654)
It's an in-memory hash store that is persisted to the disk when possible. Sort of like memcached that can survive restarts and is suitable for long-term storage.
Re:Why Quora uses MySQL rather than No-SQL by astrange on Wednesday June 30, 2010 @09:19PM (#1476739)
Well, I know that much. Did you mean that Redis just persists when you ask it to?

(I was counting that under "you have to do it yourself" and thought it might do something more automatic but still infrequent.)

Re:Why Quora uses MySQL rather than No-SQL by ericd on Wednesday June 30, 2010 @10:16PM (#1476832)
Ah OK. I believe redis persists automatically when it can, from the memory, though I haven't actually used it. With a MySQL memory table, if you want to write to the memory table AND have it persist, you have to keep track of what has changed yourself, and handle writing those things to disk.
Re:Why Quora uses MySQL rather than No-SQL by encoderer on Wednesday June 30, 2010 @07:09AM (#1474463)
Indeed, and it's quite simple to do this on a table-by-table basis.
Re:Why Quora uses MySQL rather than No-SQL by orlandu63 on Wednesday June 30, 2010 @09:11AM (#1474695)
Yes, construct your tables with the MEMORY storage engine.