On Wednesday, March 19, 2014 12:39:52 PM UTC-7, Alexey Marunin wrote: > > Nicholas, > > This is just what I need! > > Few questions: > 1) What for need value of db_shard_id? Only for internal usage in > mysql/postgres/... or I should use it explicitly? >
It must be an atom, and afaik boss_db uses it and you shouldn't need to worry about it. > 2) Can I use "cross-db" models? Something like this: > > Since shards can be different databases (mongo vs. mysql OR mysql1 vs. mysql2), I woudn't think you could relate the models from two different db shards via Boss_DB's relationships. Relationships are managed in the db_adapter and as far as CB knows, each db shard is using it's own adapter. I haven't needed or tried this, maybe someone else can chime in with other suggestions? -- Nicholas -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/2eabe384-ef7b-44dd-a575-c2236937e8d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
