aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-02 17:05:13 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-02 17:05:13 -0500
commita24dbd451c2c255321f6d87c669585d21e08ca7a (patch)
tree45fab090cf4b26d667b05cf68a2ba0dd14251b77
parentc0d532f04e91d97f92b06b15436140f704e8b8fe (diff)
downloadmediagoblin-a24dbd451c2c255321f6d87c669585d21e08ca7a.tar.lz
mediagoblin-a24dbd451c2c255321f6d87c669585d21e08ca7a.tar.xz
mediagoblin-a24dbd451c2c255321f6d87c669585d21e08ca7a.zip
Note from Chris Webber prefacing Elrond's DB abstraction idea.
-rw-r--r--mediagoblin/db/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/mediagoblin/db/__init__.py b/mediagoblin/db/__init__.py
index f0116083..776025ca 100644
--- a/mediagoblin/db/__init__.py
+++ b/mediagoblin/db/__init__.py
@@ -18,6 +18,18 @@
Database Abstraction/Wrapper Layer
==================================
+ **NOTE from Chris Webber:** I asked Elrond to explain why he put
+ ASCENDING and DESCENDING in db/util.py when we could just import from
+ pymongo. Read beow for why, but note that nobody is actually doing
+ this and there's no proof that we'll ever support more than
+ MongoDB... it would be a huge amount of work to do so.
+
+ If you really want to prove that possible, jump on IRC and talk to
+ us about making such a branch. In the meanwhile, it doesn't hurt to
+ have things as they are... if it ever makes it hard for us to
+ actually do things, we might revisit or remove this. But for more
+ information, read below.
+
This submodule is for most of the db specific stuff.
There are two main ideas here: