Re:Ever wonder what the Wikipedia database schema looks like?
by illumen on Tuesday January 20, 2009 @11:23PM
(#442801)
The wiki is the database, built on top of another database. It uses link structure and other document attributes to form different relations.
The relations(links) are like the relations in an SQL database. The relations in the wikitext are like database relations.
Much of the logic is built into the document attributes(wikitext), coded in the php layer. Mediawiki is a very big, and complex database. 1.5 million LOC. Which is fairly small compared to other databases.
Anyway... I guess my point is that mediawiki is a database, and that it's relations are not in the SQL - but in the wikitext.
see you!
Re:Ever wonder what the Wikipedia database schema looks like?
by jm4 on Tuesday January 20, 2009 @11:46PM
(#442828)
I understand the part where you said a wiki is a database. I guess it could fit some loose definition of a database. But what does that have to do with anything? The whole point of the article was the simplicity of the SQL schema. The link structure of a wiki has nothing to do with it.
Personally, what I find surprising about this whole thing is that people are so amazed at the simplicity of the schema. A wiki is a fairly simple application. Think about it. If you were going to build one it's not much more than a basic CRUD application. You really only have articles (with versioning), user accounts, images/media and whatever other oddball features you want to have like statistics and IP restrictions. Hell, I remember seeing some beginning Ruby on Rails book that used a wiki as the tutorial application. This is pretty basic stuff.