On Wed, Dec 2, 2009 at 6:08 PM, Jeffrey Taggarty <jtagga...@gmail.com>wrote:
> Hi guys, thanks for responding. I didn't want to have to create 2 > entries in the database for a friendship because of the obvious > integrity issues such as friendship deleting and friendship > relationships to files etc.... seems like a lot of unnecessary > duplication. I didn't see that symmetrical m2m before, thanks a lot > for the link. I am going to refactor my code and schema armed with > this information. > I was thinking that perhaps if you'd like to learn more about approaches to what you're doing, you could look up things that have been written about storing directed acyclical graphs in relational databases. That's essentially what you're doing. You may even conclude that a relational database isn't the right data store... but that's what Django was built for, of course. If you want to scale, really scale, you'll want to use a graph library. There are several for Python, including NetworkX, which I've used, and Boost, which I haven't. Probably more info than you wanted, but there it is. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.