Hello all,
I'm creating a SA model of a many to many relationship, where the
association has a particular weight.

I've always used straightforward association tables for this task
before (with an extra column in the association table for the weight
in this case), but was wondering if the associationproxy plugin might
be useful in this case?

I've not used it before, and it's suggested uses don't seem to tally
too closely with what I'm doing, but advice on whether it would fit
this situation would be much appreciated.

The model represents weighted association between 'left' and 'right'
objects. So I'll be inserting new 'left' and 'right' objects if
they've not been seen before, inserting new associations if we've
never linked particular 'left' and 'right' objects before, and
finally, incrementing the association weight if we see a new case of
already associated 'left' and 'right' objects.

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

Reply via email to