Wednesday, June 2, 2010

Re: SQL along side NoSQL

Try to dig some info here: http://www.allbuttonspressed.com/projects/django-nonrel

I.

On Jun 2, 5:45 pm, Sean Brant <brant.s...@gmail.com> wrote:
> Whats the best way to use django's orm along side a NoSQL DB? I want
> to keep my users and other data in postgres but have some data that
> would be better suited for a NoSQL DB like redis.
>
> I see a lot of talk about switching to NoSQL but little talk on
> integrating it with existing systems. I think it would be foolish to
> throw the baby out with the bath water and ditch SQL all together,
> unless it makes things easier to maintain and develop.
>
> I'm wondering what the best approach is for relating data stored in
> SQL to my data in redis. I was thinking of something along the line of
> this.
>
> * User object stored in SQL
> * Book object in redis, key sh1 hash of value, value is a JSON string
> * Relations stored in redis, key User.pk:books, value redis set of
> sha1's
>
> Anyone have experience, tips, better ways?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate