<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mediagoblin.org/index.php?action=history&amp;feed=atom&amp;title=Why_MongoDB</id>
	<title>Why MongoDB - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mediagoblin.org/index.php?action=history&amp;feed=atom&amp;title=Why_MongoDB"/>
	<link rel="alternate" type="text/html" href="https://wiki.mediagoblin.org/index.php?title=Why_MongoDB&amp;action=history"/>
	<updated>2026-05-19T10:23:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.mediagoblin.org/index.php?title=Why_MongoDB&amp;diff=326&amp;oldid=prev</id>
		<title>Elrond: Better sorting in the Category</title>
		<link rel="alternate" type="text/html" href="https://wiki.mediagoblin.org/index.php?title=Why_MongoDB&amp;diff=326&amp;oldid=prev"/>
		<updated>2011-10-18T10:27:21Z</updated>

		<summary type="html">&lt;p&gt;Better sorting in the Category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:27, 18 October 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ORMs in that way).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ORMs in that way).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:DesignDecisions]]&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:DesignDecisions&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|MongoDB&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Elrond</name></author>
	</entry>
	<entry>
		<id>https://wiki.mediagoblin.org/index.php?title=Why_MongoDB&amp;diff=29&amp;oldid=prev</id>
		<title>Aether: separated as per design decisions page, not sure about audio part?</title>
		<link rel="alternate" type="text/html" href="https://wiki.mediagoblin.org/index.php?title=Why_MongoDB&amp;diff=29&amp;oldid=prev"/>
		<updated>2011-08-02T15:59:37Z</updated>

		<summary type="html">&lt;p&gt;separated as per design decisions page, not sure about audio part?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Chris Webber on &amp;quot;Why MongoDB&amp;quot;:==&lt;br /&gt;
In case you were wondering, I am not a NOSQL fanboy, I do not go&lt;br /&gt;
around telling people that MongoDB is web scale.  Actually my&lt;br /&gt;
choice for MongoDB isn&amp;#039;t scalability, though scaling up really&lt;br /&gt;
nicely is a pretty good feature and sets us up well in case large&lt;br /&gt;
volume sites eventually do use MediaGoblin.  But there&amp;#039;s another&lt;br /&gt;
side of scalability, and that&amp;#039;s scaling down, which is important&lt;br /&gt;
for federation, maybe even more important than scaling up in an&lt;br /&gt;
ideal universe where everyone ran servers out of their own&lt;br /&gt;
housing.  As a memory-mapped database, MongoDB is pretty hungry,&lt;br /&gt;
so actually I spent a lot of time debating whether the inability&lt;br /&gt;
to scale down as nicely as something like SQL has with sqlite&lt;br /&gt;
meant that it was out. But I decided in the end that I really want MongoDB, not for scalability, but for flexibility.  Schema evolution pains in SQL&lt;br /&gt;
are almost enough reason for me to want MongoDB, but not quite.&lt;br /&gt;
&lt;br /&gt;
==Most Importantly==&lt;br /&gt;
The real reason is because I want the ability to eventually handle&lt;br /&gt;
multiple media types through MediaGoblin, and also allow for&lt;br /&gt;
plugins, without the rigidity of tables making that difficult.  In&lt;br /&gt;
other words, something like::&lt;br /&gt;
&lt;br /&gt;
        {&amp;quot;title&amp;quot;: &amp;quot;Me talking until you are bored&amp;quot;,&lt;br /&gt;
         &amp;quot;description&amp;quot;: &amp;quot;blah blah blah&amp;quot;,&lt;br /&gt;
         &amp;quot;media_type&amp;quot;: &amp;quot;audio&amp;quot;,&lt;br /&gt;
         &amp;quot;media_data&amp;quot;: {&lt;br /&gt;
             &amp;quot;length&amp;quot;: &amp;quot;2:30&amp;quot;,&lt;br /&gt;
             &amp;quot;codec&amp;quot;: &amp;quot;OGG Vorbis&amp;quot;},&lt;br /&gt;
         &amp;quot;plugin_data&amp;quot;: {&lt;br /&gt;
             &amp;quot;licensing&amp;quot;: {&lt;br /&gt;
                 &amp;quot;license&amp;quot;: &amp;quot;http://creativecommons.org/licenses/by-sa/3.0/&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Being able to just dump media-specific information in a media_data&lt;br /&gt;
hashtable is pretty great, and even better is having a plugin&lt;br /&gt;
system where you can just let plugins have their own entire&lt;br /&gt;
key-value space cleanly inside the document that doesn&amp;#039;t interfere&lt;br /&gt;
with anyone else&amp;#039;s stuff. If we were to let plugins to deposit&lt;br /&gt;
their own information inside the database, either we&amp;#039;d let plugins&lt;br /&gt;
create their own tables which makes SQL migrations even harder&lt;br /&gt;
than they already are, or we&amp;#039;d probably end up creating a table&lt;br /&gt;
with a column for key, a column for value, and a column for type&lt;br /&gt;
in one huge table called &amp;quot;plugin_data&amp;quot; or something similar.  (Yo&lt;br /&gt;
dawg, I heard you liked plugins, so I put a database in your&lt;br /&gt;
database so you can query while you query.)  Gross.&lt;br /&gt;
&lt;br /&gt;
==Keeping It Clean==&lt;br /&gt;
I also don&amp;#039;t want things to be too loose so that we forget or lose&lt;br /&gt;
the structure of things, and that&amp;#039;s one reason why I want to use&lt;br /&gt;
MongoKit, because we can cleanly define a much structure as we&lt;br /&gt;
want and verify that documents match that structure generally&lt;br /&gt;
without adding too much bloat or overhead (MongoKit is a pretty&lt;br /&gt;
lightweight wrapper and doesn&amp;#039;t inject extra MongoKit-specific&lt;br /&gt;
stuff into the database, which is nice and nicer than many other&lt;br /&gt;
ORMs in that way).&lt;br /&gt;
&lt;br /&gt;
[[Category:DesignDecisions]]&lt;/div&gt;</summary>
		<author><name>Aether</name></author>
	</entry>
</feed>