Hi,

Here is the scenario. I have two objects: node and edge. My DB is
sharded on node ids. Edges connect two node ids.
I have essentially three tables: node, inboundEdge, outboundEdge.
If an edge (A,B) is created, I want it to be persisted in the inbound
edge table of node B shard and in the outbound edge table of node A's
shard.

Is there a way to have a single class Edge that would map to two
tables potentially on different shards? I can of course come up with
two distinct classes InboundEdge and OutboundEdge but I would really
like to abstract that replication from the application.

Thank you,

Arthur

-- 
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