Multi-Tenancy with dynamic tables and relationships
217 views
Skip to first unread message
John Kida
unread,
Dec 5, 2016, 7:31:13 PM12/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
I have a multi-tenant (postgresql schema) system which supports the ability for creating custom tables and relationships. However.... each schema actually consists of the exact same tables.
User can dynamically define new tables and relationships by saving information into TableMeta, FieldMeta and RelationshipMeta tables. The data saved in these tables define the Table mappings i need to dynamically generate.
The relationships that can be dynamically generated can be associated with any of the common tables as well as any of the dynamically generated Tables.
Since relationships can be dynamically added onto common tables on a per schema basis, I would need to generate distinct table mappings per schema, in order to keep those relationships from leaking or colliding with other users and their dynamically added relationships
I read a few posts that duplicating common Table mappings is not recommended because it will not be scalable.
Do you have any suggestions?
mike bayer
unread,
Dec 6, 2016, 11:06:24 AM12/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message