We are using the sharding module included in our application. 


Currently we are selecting shards based on field. This works really well, 
as the field that gets hashed to select the shard needs to be migrated to 
the other tables that exist only in that shard.


 Now we would like to have some static entities in all databases we would 
like to use the table name to indicated that the table is available in all 
shards. Ideally we would define a parent class 'unsharded' and derive from 
that class for all the unsharded entities.


 I can see the current entities are in _entities, but as that begins with 
an underscore I don't think I am meant to be using it. 


 What should I use to get the entities from the query?


ps. Loving sqlalchemy and just started setting up Alembic for our project 
(flask, sqlalchemy, postgres).

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to