Putting django on Amazon DB

38 views
Skip to first unread message

John M

unread,
Dec 14, 2007, 2:05:12 PM12/14/07
to Django users
I just got an email from Amazon Web Services division, and they are
starting a BETA of Amazon SimpleDB(tm)- Limited Beta, which turns their
S3 into a simple database.

I know the developers for django are pretty busy, but how hard would
it be to put this simple DB into django?

http://www.amazon.com/gp/browse.html?node=342335011

James Bennett

unread,
Dec 14, 2007, 5:09:09 PM12/14/07
to django...@googlegroups.com
On Dec 14, 2007 1:05 PM, John M <retire...@gmail.com> wrote:
> I know the developers for django are pretty busy, but how hard would
> it be to put this simple DB into django?

Django has the ability to use a database backend not defined as part
of Django itself, so the best plan for this would be for you and
others who are interested in the feature to write up an implementation
and offer it for use. If/when it matures and has a proven track record
of being stable and useful (and has someone willing to commit to
maintaining it long-term), then it'll be time to talk about whether it
belongs as part of Django proper.


--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Justin Bronn

unread,
Dec 14, 2007, 6:20:56 PM12/14/07
to Django users
> I just got an email from Amazon Web Services division, and they are
> starting a BETA of Amazon SimpleDB(tm)- Limited Beta, which turns their
> S3 into a simple database.
>
> I know the developers for django are pretty busy, but how hard would
> it be to put this simple DB into django?

> the best plan for this would be for you and others who are interested
> in the feature to write up an implementation and offer it for use

If you were to attempt to develop anything, I suggest you to start
your efforts using the queryset-refactor branch.

-Justin

Mitch....@gmail.com

unread,
Dec 14, 2007, 6:41:44 PM12/14/07
to Django users
I've actually been on the private beta for SimpleDB for over a year.
I've written a module supporting SDB for my boto library and I'd love
to see a tighter connection between Django and SimpleDB.

I'm certainly not a Django expert but I did try to slot SimpleDB into
Django in a way that would allow me to define models in Django and
have it just work. Admittedly, I spent a total of probably two hours
on this but there were definitely some impedance mismatches between
the two. I'd love to work with someone who has a deeper understanding
of Django to see if we can map even a subset of Django's ORM to
SimpleDB.

Mitch

Empty

unread,
Dec 14, 2007, 6:55:23 PM12/14/07
to django...@googlegroups.com
I'm also quite interested in this. It was the first thing I thought
of when I received the announcement today. You do great work with the
boto library and I'm excited to see that you're looking into this.

As an aside, if the database backends were truly pluggable, like
sessions, then we could prove the stability, usability, and commitment
of the implementation without core commitment ahead of time. A brief
search showed that this was discussed here:

http://groups.google.com/group/django-developers/browse_thread/thread/6bdfac9b1eac8d63/9ef5a73a61671cbd?lnk=gst&q=george+vilches&rnum=1

...and while I'm at it I would really like to pluggable cache backends too. :)

Michael
blog.michaeltrier.com

On Dec 14, 2007 6:41 PM, Mitch....@gmail.com

James Bennett

unread,
Dec 14, 2007, 7:44:37 PM12/14/07
to django...@googlegroups.com
On Dec 14, 2007 5:55 PM, Empty <mtr...@gmail.com> wrote:
> As an aside, if the database backends were truly pluggable, like
> sessions, then we could prove the stability, usability, and commitment
> of the implementation without core commitment ahead of time. A brief
> search showed that this was discussed here:

As I've already said, you can write a database backend, right now, and
use it with Django, right now, without needing it to be part of Django
itself. The DATABASE_BACKEND setting will -- in addition to the named
backends which ship with Django -- accept a dotted Python path to a
backend module and use that. All you need to do is write the code.

Empty

unread,
Dec 14, 2007, 9:20:33 PM12/14/07
to django...@googlegroups.com
On Dec 14, 2007 7:44 PM, James Bennett <ubern...@gmail.com> wrote:
>
> On Dec 14, 2007 5:55 PM, Empty <mtr...@gmail.com> wrote:
> > As an aside, if the database backends were truly pluggable, like
> > sessions, then we could prove the stability, usability, and commitment
> > of the implementation without core commitment ahead of time. A brief
> > search showed that this was discussed here:
>
> As I've already said, you can write a database backend, right now, and
> use it with Django, right now, without needing it to be part of Django
> itself. The DATABASE_BACKEND setting will -- in addition to the named
> backends which ship with Django -- accept a dotted Python path to a
> backend module and use that. All you need to do is write the code.

I didn't read that from your original post and the investigating I did
I did not find that, so that's great to know. Thanks so much.


Michael Trier
blog.michaeltrier.com

Reply all
Reply to author
Forward
0 new messages